添加获取优惠券条件

This commit is contained in:
韩鹏辉
2024-05-27 10:15:43 +08:00
parent 1848230528
commit 5e1e721233
4 changed files with 24 additions and 5 deletions

View File

@@ -26,6 +26,12 @@
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="amount != null and amount != ''">
and coupons_amount &lt;= #{amount}
</if>
</select>
<select id="selectByOrderId" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
select * from tb_user_coupons where order_id = #{orderId}