Explorar o código

过滤下架产品

kobe6258 hai 4 meses
pai
achega
46a0186e05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 
 }