Browse Source

逻辑图分类下无子分类时缩略图列表fix

zwxi 5 months ago
parent
commit
16c21b3906
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controllers/sandbox/sandbox.go

+ 3 - 0
controllers/sandbox/sandbox.go

@@ -1724,6 +1724,9 @@ func (this *SandboxController) ListV2() {
 		if len(childIds) > 0 {
 			ids := utils.IntArr2joinString(childIds,",")
 			condition += " AND sandbox_classify_id IN(" + ids + ") "
+		} else {
+			condition += " AND sandbox_classify_id = ? "
+			pars = append(pars, sandboxClassifyId)
 		}
 	}
 	if keyWord != "" {