我正在尝试在运营商维度上创建一个非常简单的地理层次结构。我的数据是这样的:
运营商城市州国家
Carrier A | Chicago | IL | USA
Carrier B | Aurora | IL | USA
Carrier C | Stockton | CA | USA
Carrier D | Winnipeg | MB | Canada
Carrier E | Richmond | BC | Canada
Carrier F | Valparaiso| ZAC| Mexico
Carrier G | Veracruz | VER |Mexioc
我的层次结构定义为
Country
State
City
Carrier
属性关系:
Carrier --> City Name --> State Name --> Country
我希望浏览器显示层次结构如下:
USA
IL
Chicago
Carrier A
Aurora
Carrier B
CA
Stockton
Carrier C
Canada
MB
Winnipeg
Carrier D
BC
Richmond
Carrier E
Mexico
ZAC
Valparaiso
Carrier F
VER
Veracruz
Carrier G
相反,它重复层次结构中的每个级别:
USA
IL
Chicago
Carrier A
USA
IL
Aurora
Carrier B
USA
CA
Stockton
Carrier C
Canada
MB
Winnipeg
Carrier D
Canada
BC
Richmond
Carrier E
Mexico
ZAC
Valparaiso
Carrier F
Mexico
VER
Veracruz
Carrier G