后台--运费模板:配送区域修改

pull/2/head
小小张 2023-05-18 18:03:33 +08:00
parent a0c0fc8437
commit 1bf472edb6
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ public class ShippingTemplatesRegionServiceImpl extends ServiceImpl<ShippingTemp
if(this.cityIdList == null || this.cityIdList.size() < 1){ if(this.cityIdList == null || this.cityIdList.size() < 1){
Area area = AreaUtils.getArea(Area.ID_CHINA); Area area = AreaUtils.getArea(Area.ID_CHINA);
Assert.notNull(area, "获取不到中国"); Assert.notNull(area, "获取不到中国");
cityIdList = new ArrayList<>();
AreaUtils.getAreaId(cityIdList, AreaTypeEnum.DISTRICT,area.getChildren()); AreaUtils.getAreaId(cityIdList, AreaTypeEnum.DISTRICT,area.getChildren());
} }
return this.cityIdList; return this.cityIdList;