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}