Kaynağa Gözat

过滤下架产品

kobe6258 3 ay önce
ebeveyn
işleme
095c0ade27
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      models/report/report.go

+ 1 - 1
models/report/report.go

@@ -233,7 +233,7 @@ func GetMaxIdByPermissionIds(orgIds map[string][]int, disCardIds []int) (total i
 		total = 0
 		return
 	}
-	countQuery := db.Model(&Report{}).Select("count(*)").Where("status = ? ", StatusPublish, disCardIds)
+	countQuery := db.Model(&Report{}).Select("count(*)").Where("status = ? ", StatusPublish)
 	maxQuery := db.Model(&Report{}).Select("MAX(id) id").Where("status = ? ", StatusPublish)
 	if len(disCardIds) > 0 {
 		countQuery.Where("id not in ?", disCardIds)