创建房屋时,导入人口数据 --renpc
This commit is contained in:
parent
1e829d12e8
commit
9eba0c7613
@ -149,11 +149,13 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
|
||||
for (PopulationVO populationVO : populationVOList) {
|
||||
if("1".equals(populationVO.getOutHouse())) {
|
||||
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);
|
||||
}else {
|
||||
populationdao.deleteById(populationVO.getPopulationId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user