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