mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 23:45:08 +08:00
product:优化管理后台相关的接口
area:增加地区列表界面
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.framework.ip.core.utils;
|
||||
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.text.csv.CsvRow;
|
||||
import cn.hutool.core.text.csv.CsvUtil;
|
||||
import cn.iocoder.yudao.framework.common.util.object.ObjectUtils;
|
||||
@ -50,6 +51,7 @@ public class AreaUtils {
|
||||
for (CsvRow row : rows) {
|
||||
Area area = areas.get(Integer.valueOf(row.get(0))); // 自己
|
||||
Area parent = areas.get(Integer.valueOf(row.get(3))); // 父
|
||||
Assert.isTrue(area != parent, "{}:父子节点相同", area.getName());
|
||||
area.setParent(parent);
|
||||
parent.getChildren().add(area);
|
||||
}
|
||||
|
@ -2567,8 +2567,6 @@ id,name,type,parentId
|
||||
441826,连南瑶族自治县,4,441800
|
||||
441881,英德市,4,441800
|
||||
441882,连州市,4,441800
|
||||
441900,东莞市,4,441900
|
||||
442000,中山市,4,442000
|
||||
445102,湘桥区,4,445100
|
||||
445103,潮安区,4,445100
|
||||
445122,饶平县,4,445100
|
||||
@ -2704,7 +2702,6 @@ id,name,type,parentId
|
||||
460321,西沙群岛,4,460300
|
||||
460322,南沙群岛,4,460300
|
||||
460323,中沙群岛的岛礁及其海域,4,460300
|
||||
460400,儋州市,4,460400
|
||||
469001,五指山市,4,469000
|
||||
469002,琼海市,4,469000
|
||||
469005,文昌市,4,469000
|
||||
|
|
Reference in New Issue
Block a user