Browse Source

fix(all): 解决获取区划问题

pull/1/head
zhaoqiaobo 9 months ago
parent
commit
c7ef48e993
  1. 6
      blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RegionServiceImpl.java

6
blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RegionServiceImpl.java

@ -243,9 +243,9 @@ public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> impleme
String areaCode = areaRegion.getCode();
String areaName = areaRegion.getName();
JSONObject areaObject = new JSONObject();
cityObject.put("value", areaCode);
cityObject.put("label", areaName);
areaArray.add(cityObject);
areaObject.put("value", areaCode);
areaObject.put("label", areaName);
areaArray.add(areaObject);
}
if (areaArray.size() > 0) {
cityObject.put("children", areaArray);

Loading…
Cancel
Save