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 20ffeff..e336cde 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 @@ -150,6 +150,7 @@ public class HouseServiceImpl extends AbstractService implements IHouseService { if("1".equals(populationVO.getOutHouse())) { populationService.update(populationVO.getPopulationId(), populationVO); } else if(StringUtils.isEmpty(populationVO.getPopulationId())) { + populationVO.setHouseId(houseId); populationService.save(token, populationVO); }else { populationdao.deleteById(populationVO.getPopulationId());