From 5504f962785a151a029cff9d337da9d9e65f4f05 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 27 五月 2022 13:25:54 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java index 7e7d3b0..c731023 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java @@ -239,10 +239,22 @@ List<ComMngPopulationDO> populationDOS=this.populationDAO.selectList(new QueryWrapper<ComMngPopulationDO>().lambda().eq(ComMngPopulationDO::getVillageId,villageId)); if(!populationDOS.isEmpty()){ populationDOS.forEach(comMngPopulationDO -> { + comMngPopulationDO.setRoad(comMngVillageVO.getAlley()); + comMngPopulationDO.setDoorNo(comMngVillageVO.getHouseNum()); comMngPopulationDO.setAddress(comMngPopulationDO.getAddress().replace(comMngVillageDO.getAlley()+comMngVillageDO.getHouseNum(),comMngVillageVO.getAlley()+comMngVillageVO.getHouseNum())); this.populationDAO.updateById(comMngPopulationDO); }); } + //历史房屋数据处理 + List<ComMngPopulationHouseDO> comMngPopulationHouseDOS=this.comMngPopulationHouseDAO.selectList(new QueryWrapper<ComMngPopulationHouseDO>().lambda().eq(ComMngPopulationHouseDO::getVillageId,comMngVillageVO.getVillageId())); + if(!comMngPopulationHouseDOS.isEmpty()){ + comMngPopulationHouseDOS.forEach(comMngPopulationHouseDO -> { + comMngPopulationHouseDO.setAlley(comMngVillageVO.getAlley()); + comMngPopulationHouseDO.setHouseNum(comMngVillageVO.getHouseNum()); + comMngPopulationHouseDO.setAddress(comMngPopulationHouseDO.getAddress().replace(comMngVillageDO.getAlley()+comMngVillageDO.getHouseNum(),comMngVillageVO.getAlley()+comMngVillageVO.getHouseNum())); + this.comMngPopulationHouseDAO.updateById(comMngPopulationHouseDO); + }); + } BeanUtils.copyProperties(comMngVillageVO, comMngVillageDO); comMngVillageDO.setName(comMngVillageVO.getGroupAt()); comMngVillageDO.setStreetId(comActDO.getStreetId()); -- Gitblit v1.7.1