From cad37fafd19fb09599c3e34501cfdacdf4c0369c Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Thu, 2 Jul 2020 08:14:22 +0800 Subject: [PATCH] 'commit' --- dsBaseRpc/Tools/SystemAccount/SystemAccount.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dsBaseRpc/Tools/SystemAccount/SystemAccount.go b/dsBaseRpc/Tools/SystemAccount/SystemAccount.go index ccef6ca1..c36bf6bd 100644 --- a/dsBaseRpc/Tools/SystemAccount/SystemAccount.go +++ b/dsBaseRpc/Tools/SystemAccount/SystemAccount.go @@ -264,9 +264,6 @@ func AddSuperManager() { arrayTBaseRolePerson = append(arrayTBaseRolePerson, *modelBaseRolePerson) } -var _ProvinceMap = make(map[string]string) -var _CityMap = make(map[string]string) - func main() { //禁用外键约束 sql := "SET foreign_key_checks = 0" @@ -411,7 +408,7 @@ func main() { organization.OrgLat = 0 organization.OrgLng = 0 shengCode := list[i]["area_code"].(string)[0:2] + "0000" - organization.ParentId = _ProvinceMap[shengCode] + organization.ParentId = Const.ZeroGuid organization.OrgId = shiId organization.ManageOrgId = _ProvinceMap[shengCode] organization.OrgName = list[i]["area_name"].(string) + "教育局" @@ -427,9 +424,6 @@ func main() { //生成市教育局管理员 AddWardManager(organization.OrgId, organization.OrgName, organization.AreaCode) - - //放入市map - _CityMap[list[i]["area_code"].(string)] = shiId } } else { //县区 //添加县区教育局 @@ -452,7 +446,7 @@ func main() { organization.OrgCode = CommonUtil.GetUUID()[0:30] organization.OrgLat = 0 organization.OrgLng = 0 - organization.ParentId = _CityMap[cityCode] + organization.ParentId = Const.ZeroGuid organization.OrgId = quId shengCode := list[i]["area_code"].(string)[0:2] + "0000" organization.ManageOrgId = organization.OrgId