|
|
@ -74,7 +74,7 @@ public class InitOrgPerson {
|
|
|
|
generateUser(1, "系统管理员", "110000", "110101", 1, adminId, "00000000");
|
|
|
|
generateUser(1, "系统管理员", "110000", "110101", 1, adminId, "00000000");
|
|
|
|
//遍历所有云南省的市
|
|
|
|
//遍历所有云南省的市
|
|
|
|
String province_id = "FD61813E-70A1-42AB-9A8E-141ED4D47B98";
|
|
|
|
String province_id = "FD61813E-70A1-42AB-9A8E-141ED4D47B98";
|
|
|
|
sql = "select * from t_dm_area where province_id=? and LEVEL_id=4";
|
|
|
|
sql = "select * from t_dm_area where province_id=? and LEVEL_id=4 order by sort_id,area_code";
|
|
|
|
List<Record> cityList = Db.find(sql, province_id);
|
|
|
|
List<Record> cityList = Db.find(sql, province_id);
|
|
|
|
for (Record city : cityList) {
|
|
|
|
for (Record city : cityList) {
|
|
|
|
String city_id = city.getStr("id");
|
|
|
|
String city_id = city.getStr("id");
|
|
|
@ -82,7 +82,7 @@ public class InitOrgPerson {
|
|
|
|
generateUser(2, city_name+"管理员", city_id, "", 2, city_id, city_id);
|
|
|
|
generateUser(2, city_name+"管理员", city_id, "", 2, city_id, city_id);
|
|
|
|
System.out.println("正在生成:" + city_name + "的管理员账号!");
|
|
|
|
System.out.println("正在生成:" + city_name + "的管理员账号!");
|
|
|
|
//遍历所有市下的县
|
|
|
|
//遍历所有市下的县
|
|
|
|
sql = "select * from t_dm_area where parent_id=?";
|
|
|
|
sql = "select * from t_dm_area where parent_id=? order by sort_id,area_code";
|
|
|
|
List<Record> countyList = Db.find(sql, city_id);
|
|
|
|
List<Record> countyList = Db.find(sql, city_id);
|
|
|
|
for (Record county : countyList) {
|
|
|
|
for (Record county : countyList) {
|
|
|
|
String county_id = county.getStr("id");
|
|
|
|
String county_id = county.getStr("id");
|
|
|
|