...
|
...
|
@@ -180,7 +180,7 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode |
|
|
|
|
|
//修改部门及子级部门的relation
|
|
|
for i := range departmentSubset {
|
|
|
err = models.UpdateDepartmentById(departmentSubset[i], []string{"ParentId", "Relation"}, o)
|
|
|
err = models.UpdateDepartmentById(departmentSubset[i], []string{"ParentId", "Relation", "Level"}, o)
|
|
|
if err != nil {
|
|
|
log.Error("更新position发生错误,bussiness_admin_id=%d,id=%d,err:%s", departmentSubset[i].BusinessDepartmentId, departmentSubset[i].Id, err)
|
|
|
o.Rollback()
|
...
|
...
|
|