Roc 1 tuần trước cách đây
mục cha
commit
1800f7b9ce
3 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 1 1
      controllers/data_manage/manual.go
  2. 1 1
      controllers/sys_department.go
  3. 2 2
      services/system.go

+ 1 - 1
controllers/data_manage/manual.go

@@ -98,7 +98,7 @@ func (this *ManualController) ManualSysUserSearch() {
 	}
 
 	// 构建分组树(以前这里还有个keyword匹配,不知道用作干嘛的,先去掉吧)
-	groupTree := services.BuildGroupTree(groups, groupAdmins)
+	groupTree := services.BuildGroupTreeV2(groups, groupAdmins)
 
 	// 部门
 	list := make([]*system.DepartmentUserTree, 0)

+ 1 - 1
controllers/sys_department.go

@@ -372,7 +372,7 @@ func (this *SysDepartmentController) DepartmentUserTree() {
 	}
 
 	// 构建分组树(以前这里还有个keyword匹配,不知道用作干嘛的,先去掉吧)
-	groupTree := services.BuildGroupTree(groups, groupAdmins)
+	groupTree := services.BuildGroupTreeV2(groups, groupAdmins)
 
 	// 部门
 	list := make([]*system.DepartmentUserTree, 0)

+ 2 - 2
services/system.go

@@ -46,8 +46,8 @@ func GetMenuTreeRecursive(list []*system.SysMenuItem, parentId int) []*system.Sy
 	return res
 }
 
-// BuildGroupTree 构建分组树
-func BuildGroupTree(groups []*system.SysFullGroup, groupAdmins map[int][]*system.DepartmentUserTree) map[int][]*system.DepartmentUserTree {
+// BuildGroupTreeV2 构建分组树
+func BuildGroupTreeV2(groups []*system.SysFullGroup, groupAdmins map[int][]*system.DepartmentUserTree) map[int][]*system.DepartmentUserTree {
 	// 创建分组ID到节点的映射
 	groupMap := make(map[int]*system.DepartmentUserTree)
 	idList := make([]int, 0, len(groups))