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

This commit is contained in:
Renpc-kilig 2023-11-17 15:41:28 +08:00
parent 1d443879e6
commit 5274a6af1e

View File

@ -81,6 +81,13 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
}
params.put("bindTime", params.get("gmtCreate"));
params.put("outHouse", 0);
// 解除脱敏
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;
}
@ -128,6 +135,12 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
} else {
setUpdateInfo(token, params);
}
// 解除脱敏
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationVO.getPopulationInfoId());
params.put("name", populationInfoDTO.getName());
params.put("cardNum", populationInfoDTO.getIdcard());
params.put("phone", populationInfoDTO.getPhone());
populationDao.update(params);
}