浏览代码

Merge branch 'bug/6936' into debug

Roc 4 天之前
父节点
当前提交
6a8e8d10af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/sandbox/sandbox_classify.go

+ 1 - 1
models/sandbox/sandbox_classify.go

@@ -108,7 +108,7 @@ type SandboxClassifyDeleteCheckReq struct {
 func GetSandboxInfoCountByClassifyId(classifyId int) (count int, err error) {
 	var sql string
 	var pars []interface{}
-	sql = `WITH RECURSIVE classify_tree AS (
+	sql = `WITH RECURSIVE classify_tree (sandbox_classify_id, parent_id, level) AS (
     -- 基础查询:获取起始节点
     SELECT sandbox_classify_id, parent_id, 1 as level
     FROM sandbox_classify