|
@@ -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
|
|
|
|
|
|
}
|