|
@@ -303,6 +303,7 @@ func AddEdbClassify(classifyName string, parentId, level int, classifyType uint8
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if parentId == 0 { //一级目录的rootId等于自己本身
|
|
if parentId == 0 { //一级目录的rootId等于自己本身
|
|
|
|
+ classifyInfo.ClassifyId = int(newId)
|
|
classifyInfo.RootId = int(newId)
|
|
classifyInfo.RootId = int(newId)
|
|
err = classifyInfo.Update([]string{"RootId"})
|
|
err = classifyInfo.Update([]string{"RootId"})
|
|
if err != nil {
|
|
if err != nil {
|