From 34b537c6834d099a76ed0a9164809eed05022b04 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 30 六月 2021 16:57:45 +0800 Subject: [PATCH] 综治app-小区模块接口开发 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java index dd0aeb1..442b037 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java @@ -16,6 +16,8 @@ import com.panzhihua.common.exceptions.ServiceException; import com.panzhihua.common.model.dtos.community.*; import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; +import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO; +import com.panzhihua.common.model.dtos.grid.PageComMngPopulationDTO; import com.panzhihua.common.model.dtos.grid.PagePopulationListDTO; import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationListDTO; import com.panzhihua.common.model.dtos.user.PageInputUserDTO; @@ -28,11 +30,9 @@ import com.panzhihua.common.model.vos.community.screen.civil.CivilStatisticsVO; import com.panzhihua.common.model.vos.community.screen.civil.CivilVillageStatisticsVO; import com.panzhihua.common.model.vos.community.screen.event.*; +import com.panzhihua.common.model.vos.community.screen.event.EventTransferRecordVO; import com.panzhihua.common.model.vos.community.screen.index.*; -import com.panzhihua.common.model.vos.grid.EventGridDataVO; -import com.panzhihua.common.model.vos.grid.EventResourceVO; -import com.panzhihua.common.model.vos.grid.PopulationDetailVO; -import com.panzhihua.common.model.vos.grid.PopulationListVO; +import com.panzhihua.common.model.vos.grid.*; import com.panzhihua.common.model.vos.grid.admin.ComMngPopulationListVO; import com.panzhihua.common.model.vos.screen.ComActPopulationCultureVO; import com.panzhihua.common.model.vos.screen.ComActPopulationScreenVO; @@ -1538,4 +1538,21 @@ return R.ok(); } + @Override + public R getBuildingHousePopulationList(PageComMngPopulationDTO populationDTO){ + + IPage<EventSpecialPopulationVO> populationVOIPage = this.baseMapper.getBuildingHousePopulationList(new Page(populationDTO.getPageNum(),populationDTO.getPageSize()),populationDTO); + if(!populationVOIPage.getRecords().isEmpty()){ + populationVOIPage.getRecords().forEach(population -> { + try { + Integer age = IdcardUtil.getAgeByIdCard(population.getIdCard()); + population.setAge(age); + }catch (Exception e){ + log.error("人员身份证转换年龄失败,人员id:" + population.getId()); + } + }); + } + return R.ok(populationVOIPage); + } + } \ No newline at end of file -- Gitblit v1.7.1