101captain
2022-05-27 5504f962785a151a029cff9d337da9d9e65f4f05
bug修改
1个文件已修改
12 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngVillageServiceImpl.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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());