绑定房屋人口bug修改 --renpc

This commit is contained in:
Renpc-kilig 2023-11-20 10:14:16 +08:00
parent 8b17c84314
commit 451f13aff7

View File

@ -83,10 +83,12 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
params.put("outHouse", 0);
// 解除脱敏
if(null != params.get("populationInfoId") && StringUtils.isNotEmpty(params.get("populationInfoId").toString())) {
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationVO.getPopulationInfoId());
params.put("name", populationInfoDTO.getName());
params.put("cardNum", populationInfoDTO.getIdcard());
params.put("phone", populationInfoDTO.getPhone());
}
populationDao.save(params);
return populationId;
@ -184,7 +186,16 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
public List<PopulationDTO> list(Map<String, Object> params) {
List<PopulationDTO> list = populationDao.list(params);
for (PopulationDTO populationDTO : list) {
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationDTO.getPopulationInfoId());
PopulationInfoDTO populationInfoDTO = new PopulationInfoDTO();
if(StringUtils.isNotEmpty(populationDTO.getPopulationInfoId())) {
populationInfoDTO = populationInfoService.get(populationDTO.getPopulationInfoId());
}else {
populationInfoDTO.setIdcard(populationDTO.getCardNum());
populationInfoDTO.setName(populationDTO.getName());
populationInfoDTO.setPhone(populationDTO.getPhone());
populationInfoDTO.setIdcardType("身份证");
}
populationInfoService.getTuoMin(populationInfoDTO);
populationDTO.setCardNum(populationInfoDTO.getIdcard());