diff --git a/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java b/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java index b5edd05..d08c275 100644 --- a/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java +++ b/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java @@ -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); }