kobe6258 hai 6 meses
pai
achega
bcc80b9776
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {