Browse Source

过滤下架产品

kobe6258 3 months ago
parent
commit
095c0ade27
1 changed files with 1 additions and 1 deletions
  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)