xyxie 11 months ago
parent
commit
cca7244b12
1 changed files with 1 additions and 3 deletions
  1. 1 3
      controllers/admin.go

+ 1 - 3
controllers/admin.go

@@ -56,9 +56,7 @@ func (this *AdminController) GetBusinessAdmin() {
 		}
 	}
 	if len(companyList) > 0 {
-
 		for _, v := range companyList {
-
 			tmp := &system.BusinessAdmin{
 				AdminId:  v.BusinessCode,
 				RealName: v.BusinessName,
@@ -66,8 +64,8 @@ func (this *AdminController) GetBusinessAdmin() {
 			l, ok := companyMap[v.BusinessCode]
 			if ok {
 				tmp.ChildrenList = l
+				list = append(list, tmp)
 			}
-			list = append(list, tmp)
 		}
 	}
 	var resp system.BusinessAdminResp