Selaa lähdekoodia

过滤下架产品

kobe6258 5 kuukautta sitten
vanhempi
commit
46a0186e05
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 
 }