以人找房、以房找人信息脱敏 --renpc

This commit is contained in:
Renpc-kilig 2023-11-17 15:53:27 +08:00
parent 5274a6af1e
commit 15655987bc

View File

@ -182,7 +182,16 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
@Override @Override
public List<PopulationDTO> list(Map<String, Object> params) { public List<PopulationDTO> list(Map<String, Object> params) {
return populationDao.list(params); List<PopulationDTO> list = populationDao.list(params);
for (PopulationDTO populationDTO : list) {
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationDTO.getPopulationInfoId());
populationInfoService.getTuoMin(populationInfoDTO);
populationDTO.setCardNum(populationInfoDTO.getIdcard());
populationDTO.setName(populationInfoDTO.getName());
populationDTO.setPhone(populationInfoDTO.getPhone());
}
return list;
} }
@Override @Override