|
|
@@ -1395,11 +1395,11 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<update id="cardDefer" parameterType="map"> |
|
|
<update id="cardDefer" parameterType="map"> |
|
|
update wx_coupon_order set coupon_order_status = 4,update_date = now(), expired_time= #{expireTime} where coupon_id = #{couponId} and coupon_order_status = 5 |
|
|
|
|
|
|
|
|
update wx_coupon_order set coupon_order_status = 4,update_date = now(), expired_time= #{expireTime} where coupon_id = #{couponId} and coupon_order_status in (4, 5) |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
<select id="cardDeferCouponOrderId" parameterType="java.lang.Long" resultType="java.lang.Long"> |
|
|
<select id="cardDeferCouponOrderId" parameterType="java.lang.Long" resultType="java.lang.Long"> |
|
|
select id from wx_coupon_order where coupon_id = #{couponId} and coupon_order_status = 5 |
|
|
|
|
|
|
|
|
select id from wx_coupon_order where coupon_id = #{couponId} and coupon_order_status in (4, 5) |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |