|
@@ -190,7 +190,7 @@ func MoveMaterialClassify(classifyInfo *material.MaterialClassify, req *material
|
|
|
classifyInfo.ModifyTime = nodeInfo.ModifyTime
|
|
|
classifyInfo.ParentId = nodeInfo.ParentId
|
|
|
|
|
|
- levelPath := ""
|
|
|
+ levelPath := classifyInfo.LevelPath
|
|
|
if classifyInfo.ParentId != oldParentId {
|
|
|
//查找父级分类
|
|
|
parentClassify, e := material.GetMaterialClassifyById(classifyInfo.ParentId)
|
|
@@ -200,9 +200,9 @@ func MoveMaterialClassify(classifyInfo *material.MaterialClassify, req *material
|
|
|
return
|
|
|
}
|
|
|
levelPath = fmt.Sprintf("%s,%d", parentClassify.LevelPath, classifyInfo.ClassifyId)
|
|
|
+ classifyInfo.LevelPath = levelPath
|
|
|
+ updateCol = append(updateCol, "LevelPath")
|
|
|
}
|
|
|
- classifyInfo.LevelPath = levelPath
|
|
|
- updateCol = append(updateCol, "LevelPath")
|
|
|
err = classifyInfo.Update(updateCol)
|
|
|
if err != nil {
|
|
|
err = fmt.Errorf("修改失败,Err:" + err.Error())
|