|
@ -41,7 +41,6 @@ import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.constant.CustomerGridConstant; |
|
|
import com.epmet.constant.CustomerGridConstant; |
|
@ -52,6 +51,7 @@ import com.epmet.dto.form.IcNeighborHoodAddFormDTO; |
|
|
import com.epmet.dto.form.ImportInfoFormDTO; |
|
|
import com.epmet.dto.form.ImportInfoFormDTO; |
|
|
import com.epmet.dto.form.ImportTaskCommonFormDTO; |
|
|
import com.epmet.dto.form.ImportTaskCommonFormDTO; |
|
|
import com.epmet.dto.form.NeighborHoodOptionFormDTO; |
|
|
import com.epmet.dto.form.NeighborHoodOptionFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.yt.ChooseGridFormDTO; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.entity.*; |
|
|
import com.epmet.entity.*; |
|
|
import com.epmet.excel.IcNeighborHoodExcel; |
|
|
import com.epmet.excel.IcNeighborHoodExcel; |
|
@ -223,8 +223,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao |
|
|
}).collect(Collectors.toList()); |
|
|
}).collect(Collectors.toList()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<BuildingResultDTO> getNeighborhoodList(TokenDto tokenDto, IcNeighborHoodDTO dto) { |
|
|
public List<BuildingResultDTO> getNeighborhoodList(ChooseGridFormDTO dto) { |
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
// if (StringUtils.isBlank(dto.getAgencyId()) && StringUtils.isEmpty(dto.getGridId())) {
|
|
|
// if (StringUtils.isBlank(dto.getAgencyId()) && StringUtils.isEmpty(dto.getGridId())) {
|
|
|
// log.info("agencyId与gridId都为空时,默认查询当前工作人员所属组织下的小区");
|
|
|
// log.info("agencyId与gridId都为空时,默认查询当前工作人员所属组织下的小区");
|
|
|
// CustomerStaffInfoCacheResult result= CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId());
|
|
|
// CustomerStaffInfoCacheResult result= CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId());
|
|
@ -234,7 +233,9 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao |
|
|
// }
|
|
|
// }
|
|
|
// dto.setAgencyId(result.getAgencyId());
|
|
|
// dto.setAgencyId(result.getAgencyId());
|
|
|
// }
|
|
|
// }
|
|
|
return icBuildingDao.listBuildingInfo(dto); |
|
|
PageHelper.startPage(dto.getPageNo(), dto.getPageSize()); |
|
|
|
|
|
List<BuildingResultDTO> list = icBuildingDao.listBuildingInfo(dto.getCustomerId(), dto.getAgencyId(), dto.getGridId(), dto.getBuildingName()); |
|
|
|
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|