添加获取优惠券条件
This commit is contained in:
@@ -26,6 +26,12 @@
|
||||
<if test="status != null and status != ''">
|
||||
and status = #{status}
|
||||
</if>
|
||||
|
||||
<if test="amount != null and amount != ''">
|
||||
and coupons_amount <= #{amount}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
<select id="selectByOrderId" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
select * from tb_user_coupons where order_id = #{orderId}
|
||||
|
||||
Reference in New Issue
Block a user