deleteRegionAreaConfigByRegionId

This commit is contained in:
wangxiaopeng
2024-04-18 20:25:05 +08:00
parent 6050442f75
commit f21bb13a8e

View File

@@ -45,8 +45,8 @@ public class RegionAreaConfigServiceImpl implements RegionAreaConfigService {
throw new ServiceException(ErrorCodeEnum.ONLY_WAR_REGION_CONFIG);
}
List<Long> areaIdList = regionAreaConfigAddRequest.getAreaIdList();
regionAreaConfigDao.deleteRegionAreaConfigByRegionId(regionAreaConfigAddRequest.getRegionId());
if(CollectionUtils.isEmpty(areaIdList)){
regionAreaConfigDao.deleteRegionAreaConfigByRegionId(regionAreaConfigAddRequest.getRegionId());
return Boolean.TRUE;
}
regionAreaConfigDao.deleteByWantShopAreaIds(areaIdList);