|
@@ -107,9 +107,9 @@ func (this *MaterialController) AddMaterialClassify() {
|
|
|
return
|
|
|
}
|
|
|
if req.ParentId > 0 {
|
|
|
- levelPath = fmt.Sprintf("%s,%d", levelPath, classifyId)
|
|
|
+ levelPath = fmt.Sprintf("%s%d,", levelPath, classifyId)
|
|
|
} else {
|
|
|
- levelPath = fmt.Sprintf("%d", classifyId)
|
|
|
+ levelPath = fmt.Sprintf("%d,", classifyId)
|
|
|
}
|
|
|
classify.ClassifyId = int(classifyId)
|
|
|
classify.LevelPath = levelPath
|