aa
This commit is contained in:
@@ -1487,7 +1487,7 @@ func GetCoupons(db *DaoDB, couponType int, couponStatuss, storeIDs []int, keywor
|
|||||||
SELECT DISTINCT a.*
|
SELECT DISTINCT a.*
|
||||||
FROM coupons a
|
FROM coupons a
|
||||||
LEFT JOIN store_coupons b ON a.id = b.coupon_id
|
LEFT JOIN store_coupons b ON a.id = b.coupon_id
|
||||||
WHERE a.deleted_at = ?
|
WHERE 1 = 1
|
||||||
OR a.is_all = ?
|
OR a.is_all = ?
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{utils.DefaultTimeValue, model.YES}
|
sqlParams := []interface{}{utils.DefaultTimeValue, model.YES}
|
||||||
|
|||||||
Reference in New Issue
Block a user