创建房屋时,导入人口数据 --renpc

This commit is contained in:
Renpc-kilig 2023-11-16 15:22:05 +08:00
parent 1e829d12e8
commit 9eba0c7613

View File

@ -149,11 +149,13 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
for (PopulationVO populationVO : populationVOList) { for (PopulationVO populationVO : populationVOList) {
if("1".equals(populationVO.getOutHouse())) { if("1".equals(populationVO.getOutHouse())) {
populationService.update(populationVO.getPopulationId(), populationVO); populationService.update(populationVO.getPopulationId(), populationVO);
} else if(StringUtils.isEmpty(populationVO.getPopulationId())) { }
populationVO.setHouseId(houseId); }
populationdao.deleteById(houseId);
for (PopulationVO populationVO : populationVOList) {
if(!"1".equals(populationVO.getOutHouse())) {
populationService.save(token, populationVO); populationService.save(token, populationVO);
}else {
populationdao.deleteById(populationVO.getPopulationId());
} }
} }
} }