作者 唐旭辉

部门层数判断错误, bug修复

@@ -233,7 +233,7 @@ func departmentRelationUpdate(departUpdate *models.Department, newparent *models @@ -233,7 +233,7 @@ func departmentRelationUpdate(departUpdate *models.Department, newparent *models
233 //确认层级深度 233 //确认层级深度
234 s := strings.TrimPrefix(departSubset[i].Relation, oldRelation) 234 s := strings.TrimPrefix(departSubset[i].Relation, oldRelation)
235 n := strings.Split(s, "/") 235 n := strings.Split(s, "/")
236 - if len(n) >= 0 { 236 + if len(n) >= 10 {
237 o.Rollback() 237 o.Rollback()
238 return protocol.NewErrWithMessage("10046") 238 return protocol.NewErrWithMessage("10046")
239 } 239 }