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 areaCode = areaRegion.getCode();
String areaName = areaRegion.getName(); String areaName = areaRegion.getName();
JSONObject areaObject = new JSONObject(); JSONObject areaObject = new JSONObject();
cityObject.put("value", areaCode); areaObject.put("value", areaCode);
cityObject.put("label", areaName); areaObject.put("label", areaName);
areaArray.add(cityObject); areaArray.add(areaObject);
} }
if (areaArray.size() > 0) { if (areaArray.size() > 0) {
cityObject.put("children", areaArray); cityObject.put("children", areaArray);

Loading…
Cancel
Save