|
|
@ -3919,8 +3919,12 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
|
|
} |
|
|
|
String orgIdPath=StrConstant.EPMETY_STR; |
|
|
|
if(OrgTypeEnum.AGENCY.getCode().equals(orgType)){ |
|
|
|
orgIdPath=CustomerOrgRedis.getOrgIdPath(orgId,orgType); |
|
|
|
} |
|
|
|
List<ResiPortrayalResultDTO> resultList=getDefaultAgeDistribute(); |
|
|
|
List<ResiPortrayalResultDTO> list=baseDao.selectAgeAgeDistribute(customerId,orgId,orgType); |
|
|
|
List<ResiPortrayalResultDTO> list=baseDao.selectAgeAgeDistribute(customerId,orgId,orgType,orgIdPath); |
|
|
|
if(CollectionUtils.isEmpty(list)){ |
|
|
|
return resultList; |
|
|
|
} |
|
|
@ -3986,8 +3990,12 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
if (!dictResult.success() || CollectionUtils.isEmpty(dictResult.getData())) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "学历字典获取失败", "学历字典获取失败"); |
|
|
|
} |
|
|
|
String orgIdPath=StrConstant.EPMETY_STR; |
|
|
|
if(OrgTypeEnum.AGENCY.getCode().equals(orgType)){ |
|
|
|
orgIdPath=CustomerOrgRedis.getOrgIdPath(orgId,orgType); |
|
|
|
} |
|
|
|
//按照学历分组,查询居民数量
|
|
|
|
List<ResiPortrayalResultDTO> totalList = baseDao.queryEducationDistribute(customerId, orgId, orgType); |
|
|
|
List<ResiPortrayalResultDTO> totalList = baseDao.queryEducationDistribute(customerId, orgId, orgType,orgIdPath); |
|
|
|
Map<String,Integer> map = totalList.stream().collect(Collectors.toMap(ResiPortrayalResultDTO::getCode,ResiPortrayalResultDTO::getTotalResi)); |
|
|
|
List<ResiPortrayalResultDTO> resultDTOList = new ArrayList<>(); |
|
|
|
dictResult.getData().forEach(dict -> { |
|
|
@ -4037,8 +4045,12 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
|
|
} |
|
|
|
String orgIdPath=StrConstant.EPMETY_STR; |
|
|
|
if(OrgTypeEnum.AGENCY.getCode().equals(orgType)){ |
|
|
|
orgIdPath=CustomerOrgRedis.getOrgIdPath(orgId,orgType); |
|
|
|
} |
|
|
|
PageHelper.startPage(pageNo, pageSize); |
|
|
|
List<ResiPortrayalDetailDTO> list = baseDao.selectPortrayalResiList(customerId, orgId, orgType,codeType, code); |
|
|
|
List<ResiPortrayalDetailDTO> list = baseDao.selectPortrayalResiList(customerId, orgId, orgType,orgIdPath,codeType, code); |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
Set<String> houseIds=list.stream().map(m -> m.getHomeId()).collect(Collectors.toSet()); |
|
|
|
//查询房子名称
|
|
|
|