saveOrUpdateRegionAreaConfig
This commit is contained in:
@@ -21,7 +21,6 @@ public class RegionAreaConfigAddRequest {
|
||||
private Long regionId;
|
||||
|
||||
@ApiModelProperty("省市集合")
|
||||
@NotEmpty(message = "省市不能为空")
|
||||
private List<Long> areaIdList;
|
||||
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ public class RegionAreaConfigServiceImpl implements RegionAreaConfigService {
|
||||
}
|
||||
List<Long> areaIdList = regionAreaConfigAddRequest.getAreaIdList();
|
||||
if(CollectionUtils.isEmpty(areaIdList)){
|
||||
regionAreaConfigDao.deleteRegionAreaConfigByRegionId(regionAreaConfigAddRequest.getRegionId());
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
regionAreaConfigDao.deleteByWantShopAreaIds(areaIdList);
|
||||
|
||||
Reference in New Issue
Block a user