|
@@ -518,7 +518,7 @@ func UpdateEdbClassifyChildByParentClassifyId(classifyIds []int, rootId int, lev
|
|
|
// 更新相关联的二级分类的parentId,和classify_name_second
|
|
|
sql := `update edb_classify
|
|
|
SET root_id = ?, level = level+?
|
|
|
-where id IN (` + utils.GetOrmInReplace(len(classifyIds)) + `)`
|
|
|
+where classify_id IN (` + utils.GetOrmInReplace(len(classifyIds)) + `)`
|
|
|
_, err = o.Raw(sql, rootId, levelStep).Exec()
|
|
|
if err != nil {
|
|
|
return
|