|
@@ -808,17 +808,8 @@ func moveEdbPublicClassify(parentEdbClassifyInfo, edbClassifyInfo, prevClassify,
|
|
|
updateCol = append(updateCol, "Sort", "ModifyTime")
|
|
|
}
|
|
|
|
|
|
- oldClassifyIdPath := edbClassifyInfo.ClassifyIdPath
|
|
|
- oldClassifyNamePath := edbClassifyInfo.ClassifyNamePath
|
|
|
- newClassifyNamePath := fmt.Sprint(parentEdbClassifyInfo.ClassifyNamePath, `|`, edbClassifyInfo.ClassifyName)
|
|
|
- newClassifyIdPath := fmt.Sprint(parentEdbClassifyInfo.ClassifyIdPath, `,`, edbClassifyInfo.ClassifyId)
|
|
|
-
|
|
|
//更新
|
|
|
if len(updateCol) > 0 {
|
|
|
- edbClassifyInfo.ClassifyNamePath = newClassifyNamePath
|
|
|
- edbClassifyInfo.ClassifyIdPath = newClassifyIdPath
|
|
|
- updateCol = append(updateCol, "ClassifyNamePath", "ClassifyIdPath")
|
|
|
-
|
|
|
err = edbClassifyInfo.Update(updateCol)
|
|
|
if err != nil {
|
|
|
errMsg = "移动失败"
|