|
@@ -4264,7 +4264,7 @@ func (this *EdbInfoController) EdbChartAdminList() {
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ idList = []int{531}
|
|
|
fmt.Println("idlist:", idList)
|
|
|
systemAdminMap := make(map[int]*system.Admin)
|
|
|
departmentMap := make(map[string]string)
|
|
@@ -4328,10 +4328,11 @@ func (this *EdbInfoController) EdbChartAdminList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- for _, groupList := range depList {
|
|
|
+ for i, groupList := range depList {
|
|
|
for k, v := range groupList.ChildrenList {
|
|
|
if v.RealName == "" {
|
|
|
- groupList.ChildrenList = append(groupList.ChildrenList[:k], groupList.ChildrenList[k+1:]...)
|
|
|
+ newChildrenList := append(groupList.ChildrenList[:k], groupList.ChildrenList[k+1:]...)
|
|
|
+ depList[i].ChildrenList = newChildrenList
|
|
|
}
|
|
|
}
|
|
|
}
|