mitao
2025-03-14 392b42c4891cf2e6beda57ab32c51598f290f4b7
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.promotion.mapper.CouponMemberMapper">
 
  <update id="timingCheckMemberCoupon">
    UPDATE t_coupon_member
    SET coupon_status = 2
    WHERE del_flag = 0
      AND coupon_status = 0
      AND end_date &lt; CURTIME()
  </update>
</mapper>