陶杰
2024-09-03 74916b92e0a94053e206cd559622a671427f7d2b
1.优惠券相关代码提交
已修改1个文件
6 ■■■■ 文件已修改
src/main/resources/mapper/coupon/CouponRecordMapperCustom.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/coupon/CouponRecordMapperCustom.xml
@@ -32,12 +32,12 @@
    </resultMap>
    <update id="checkCouponExpired">
        update t_coupon_record set `status`='expired' where `status`='unused' and effective_end &lt; NOW()
        update t_coupon_record  set `status`='expired' where `status`='unused' and effective_end &lt; NOW()
        <if test="param.userId != null and param.userId != ''">
            AND t.user_id = #{param.userId}
            AND user_id = #{param.userId}
        </if>
        <if test="param.customerId != null and param.customerId != ''">
            AND t.customer_id =  #{param.customerId}
            AND customer_id =  #{param.customerId}
        </if>
    </update>