|
@ -1844,12 +1844,12 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<HouseIcResiUserResultDTO> getHouseMemberList(RentTenantDataFormDTO formDTO) { |
|
|
public List<HouseIcResiUserResultDTO> getResiUserGroupHomeId(RentTenantDataFormDTO formDTO) { |
|
|
//如果是组织 且非顶级组织 则利用pids 查询 本级及下级
|
|
|
//如果是组织 且非顶级组织 则利用pids 查询 本级及下级
|
|
|
if (StringUtils.isNotBlank(formDTO.getAgencyId())){ |
|
|
if (StringUtils.isNotBlank(formDTO.getAgencyId())){ |
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(formDTO.getAgencyId()); |
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(formDTO.getAgencyId()); |
|
|
if (agencyInfo == null){ |
|
|
if (agencyInfo == null){ |
|
|
log.warn("getHouseMemberList agencyId:{} is not exist",formDTO.getAgencyId()); |
|
|
log.warn("getResiUserGroupHomeId agencyId:{} is not exist",formDTO.getAgencyId()); |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
if (!NumConstant.ZERO_STR.equals(agencyInfo.getPid())) { |
|
|
if (!NumConstant.ZERO_STR.equals(agencyInfo.getPid())) { |
|
@ -1860,10 +1860,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
|
Page<HouseIcResiUserResultDTO> listPage = PageHelper |
|
|
Page<HouseIcResiUserResultDTO> listPage = PageHelper |
|
|
.startPage(formDTO.getPageNo(),formDTO.getPageSize(),formDTO.getIsPage()) |
|
|
.startPage(formDTO.getPageNo(),formDTO.getPageSize(),formDTO.getIsPage()) |
|
|
.doSelectPage(()->baseDao.getResiUser(formDTO)); |
|
|
.doSelectPage(()->baseDao.getResiUserGroupHomeId(formDTO)); |
|
|
//Result<List<OptionResultDTO>> relationshipResult = epmetAdminOpenFeignClient.getRelationshipOption();
|
|
|
|
|
|
//Result<List<OptionResultDTO>> educationResult = epmetAdminOpenFeignClient.getEducationOption();
|
|
|
|
|
|
//Result<List<OptionResultDTO>> nationResult = epmetAdminOpenFeignClient.getNationOption();
|
|
|
|
|
|
List<String> dictTypeList = Arrays.asList(DictTypeEnum.EDUCATION.getCode(), DictTypeEnum.RELATIONSHIP.getCode(), DictTypeEnum.NATION.getCode()); |
|
|
List<String> dictTypeList = Arrays.asList(DictTypeEnum.EDUCATION.getCode(), DictTypeEnum.RELATIONSHIP.getCode(), DictTypeEnum.NATION.getCode()); |
|
|
Map<String,Map<String, String>> dictResult = new HashMap<>(); |
|
|
Map<String,Map<String, String>> dictResult = new HashMap<>(); |
|
|
dictTypeList.forEach(dict->{ |
|
|
dictTypeList.forEach(dict->{ |
|
@ -1873,8 +1871,10 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//婚姻状况
|
|
|
Map<String, String> hyzkMap = getOptionMap(formDTO.getCustomerId(),"HYZK"); |
|
|
Map<String, String> hyzkMap = getOptionMap(formDTO.getCustomerId(),"HYZK"); |
|
|
|
|
|
|
|
|
|
|
|
//遍历数据 转换为中文
|
|
|
listPage.getResult().forEach(e->{ |
|
|
listPage.getResult().forEach(e->{ |
|
|
e.getHouseMemberList().parallelStream().forEach(o->{ |
|
|
e.getHouseMemberList().parallelStream().forEach(o->{ |
|
|
if (StringUtils.isNotBlank(o.getIsParty())){ |
|
|
if (StringUtils.isNotBlank(o.getIsParty())){ |
|
|