소스 검색

过滤下架产品

kobe6258 3 달 전
부모
커밋
095c0ade27
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)