diff --git a/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java b/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java index a5760f6..8203e19 100644 --- a/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java +++ b/src/main/java/com/cm/population/service/population/impl/PopulationServiceImpl.java @@ -108,6 +108,9 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio save(token, populationVO); } } + }else { + // 全部删除 + populationDao.deleteByHouseId(houseId); } }