This commit is contained in:
苏尹岚
2021-01-11 15:10:44 +08:00
parent 1050f5501f
commit 6bbc45ad59

View File

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