diff --git a/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java b/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java index 382cac0..239bcf9 100644 --- a/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java +++ b/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java @@ -155,6 +155,7 @@ public class HouseServiceImpl extends AbstractService implements IHouseService { populationdao.deleteByHouseId(houseId); for (PopulationVO populationVO : populationVOList) { if(!"1".equals(populationVO.getOutHouse())) { + populationVO.setHouseId(houseId); populationService.save(token, populationVO); } } diff --git a/src/main/resources/templates/house/update.html b/src/main/resources/templates/house/update.html index e7bb345..2070b50 100644 --- a/src/main/resources/templates/house/update.html +++ b/src/main/resources/templates/house/update.html @@ -419,7 +419,9 @@