From 3e4562c98fc95cc95a51114c7e153a9c35792732 Mon Sep 17 00:00:00 2001 From: tangxiaobao <303826152@qq.com> Date: 星期二, 24 八月 2021 11:09:39 +0800 Subject: [PATCH] 修改测试服下载文件地址 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 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 ee7dd0f..da6fefd 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 @@ -6332,6 +6332,23 @@ return R.ok(this.baseMapper.getVillagePopulationAdmin(new Page(villagePopulationDTO.getPageNum(),villagePopulationDTO.getPageSize()),villagePopulationDTO)); } + @Override + public void addPopuCommunity() { + List<ComMngPopulationDO> list = comMngPopulationDAO.selectList(null); + List<ComMngPopulationCommunityTagsDO> adds = new ArrayList<>(); + list.forEach(comMngPopulationDO -> { + ComMngPopulationCommunityTagsDO comMngPopulationCommunityTagsDO = new ComMngPopulationCommunityTagsDO(); + comMngPopulationCommunityTagsDO.setId(Snowflake.getId()); + comMngPopulationCommunityTagsDO.setPopulationId(comMngPopulationDO.getId()); + comMngPopulationCommunityTagsDO.setCommunityId(comMngPopulationDO.getActId()); + if (comMngPopulationDO.getLabel() != null && !"".equals(comMngPopulationDO.getLabel())) { + comMngPopulationCommunityTagsDO.setLabel(comMngPopulationDO.getLabel()); + } + adds.add(comMngPopulationCommunityTagsDO); + comMngPopulationCommunityTagsDAO.insert(comMngPopulationCommunityTagsDO); + }); + } + private void setMistake(ComMngPopulationMistakeExcelVO mvo, ComMngPopulationServeExcelVO vo){ mvo.setPoliticalOutlook(PopulPoliticalOutlookEnum.getCnDescByName(vo.getPoliticalOutlook())); mvo.setIsRent(PopulHouseUseEnum.getCnDescByName(vo.getIsRent())); -- Gitblit v1.7.1