瀏覽代碼

组织架构

kobe6258 6 月之前
父節點
當前提交
bcc80b9776
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/sys_department.go

+ 1 - 1
services/sys_department.go

@@ -16,7 +16,7 @@ func GetSysDepartmentTree(list []*models.SysDepartmentList, parentId int, deepth
 		if deepth == 2 && (v.Level > 2 || v.Type == models.SubCompany) {
 			continue
 		}
-		if deepth > 2 && (v.Level == 2 || v.Type == models.SubCompany) {
+		if deepth > 2 && (v.Level != deepth || v.Type == models.SubCompany) {
 			continue
 		}
 		if v.ParentId == parentId {