|
|
|
@@ -538,12 +538,12 @@ |
|
|
|
|
|
|
|
<select id="findExpiredFreeCouponOrderByValidDate" parameterType="com.iformall.domain.po.WxCouponOrder" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> from wx_coupon_order |
|
|
|
where expired_time >= date_sub(curdate(),interval 180 day) and expired_time < now() and coupon_price = 0 and coupon_order_status = 0 |
|
|
|
where expired_time >= date_sub(curdate(),interval 360 day) and expired_time < now() and coupon_price = 0 and coupon_order_status = 0 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findExpiredCouponOrderByValidDate" parameterType="com.iformall.domain.po.WxCouponOrder" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> from wx_coupon_order |
|
|
|
where expired_time >= date_sub(curdate(),interval 180 day) and expired_time < now() and coupon_price > 0 and coupon_order_status = 0 |
|
|
|
where expired_time >= date_sub(curdate(),interval 360 day) and expired_time < now() and coupon_price > 0 and coupon_order_status = 0 |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|