@@ -27,7 +27,7 @@
update tb_coupon_user
set status = 2
where status = 0
- and date_format(expiration_time, '%Y-%m-%d %H:%i:%S') < date_format(now(), '%Y-%m-%d %H:%i:%S')
+ and expiration_time < date_format(now(), '%Y-%m-%d %H:%i:%S')
</update>
<select id="selectCouponByUserId" resultType="com.sqx.modules.coupon.entity.TbCouponUser">