陶杰
2024-12-09 14900ee3d583e2d96da5c67770d4f30f8fac5969
src/main/resources/mapper/coupon/CouponRecordMapperCustom.xml
@@ -39,6 +39,9 @@
            AND customer_id =  #{param.customerId}
        </if>
    </update>
    <update id="expireCouponRecordAll">
        update t_coupon_record  set `status`='expired' where `status`='unused' and effective_end &lt; NOW()
    </update>
    <select id="statisCouponTemplateCount" resultType="java.lang.Integer">
        select IFNULL(count(1),0) as cnt from t_coupon_record where deleted=false and category=#{param.category}