|
@@ -136,9 +136,9 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode |
|
@@ -136,9 +136,9 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode |
|
136
|
)
|
136
|
)
|
|
137
|
if newparent.Id == 0 {
|
137
|
if newparent.Id == 0 {
|
|
138
|
//修改节点为顶层节点的情况
|
138
|
//修改节点为顶层节点的情况
|
|
139
|
- newRelation = fmt.Sprintf("%d/", departmentUpdate.Id)
|
139
|
+ newRelation = fmt.Sprintf(",%d,", departmentUpdate.Id)
|
|
140
|
} else {
|
140
|
} else {
|
|
141
|
- newRelation = fmt.Sprintf("%s%d/", newparent.Relation, departmentUpdate.Id)
|
141
|
+ newRelation = fmt.Sprintf("%s%d,", newparent.Relation, departmentUpdate.Id)
|
|
142
|
}
|
142
|
}
|
|
143
|
o := orm.NewOrm()
|
143
|
o := orm.NewOrm()
|
|
144
|
o.Begin()
|
144
|
o.Begin()
|