xyxie hace 1 año
padre
commit
4dc257a31e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/data_manage/edb_classify.go

+ 1 - 1
models/data_manage/edb_classify.go

@@ -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