一键发券

This commit is contained in:
齐天大圣 2024-01-29 14:35:59 +08:00
parent ab435b6055
commit 9ce51786d6
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@
left join card_favorable cf ON cfr.card_favorable_id = cf.id
left join mt_store ms on ms.id = cfr.store_id
<where>
cfr.exchange_from = "店铺一键送券"
cfr.exchange_from = "店铺一键送券"
<if test="cardFavorableRecord.storeId != null">
and cf.store_id = #{cardFavorableRecord.storeId}
</if>

View File

@ -86,7 +86,7 @@
LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id
left join oil_order oo on mu.id = oo.user_id
<where>
oo.create_time &lt;= DATE_SUB(NOW(), INTERVAL #{days} DAY)
oo.create_time &lt;= DATE_SUB(NOW(), INTERVAL ${user.days} DAY)
<if test="user.chainStoreId != null and user.chainStoreId != ''">
and mub.chain_store_id = #{user.chainStoreId}
</if>