소스 검색

过滤下架产品

kobe6258 5 달 전
부모
커밋
46a0186e05
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/merchant/merchant_product.go

+ 1 - 1
models/merchant/merchant_product.go

@@ -233,7 +233,7 @@ func PackageListBySort(weightMap map[int]*atomic.Int32, id int64, offset int, si
 
 func GetOffSaleProducts(query []MerchantProductType) (list []MerchantProduct, err error) {
 	db := models.Main()
-	err = db.Select(detailColumns).Where(" deleted =? and  type  in ?  and sale_status = ? ", query, false, OffSale).Find(&list).Error
+	err = db.Select(detailColumns).Where(" deleted =? and  type  in ?  and sale_status = ? ", false, query, OffSale).Find(&list).Error
 	return
 
 }