Эх сурвалжийг харах

Merge branch 'bug/6936' into debug

Roc 6 өдөр өмнө
parent
commit
6a8e8d10af

+ 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