xiaoyong931011
2023-09-11 909aa1dec5f1aca692b9583f3308193fd271995c
优惠卷
1 files modified
10 ■■■■ changed files
src/main/resources/mapper/modules/MallMemberCouponMapper.xml 10 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/MallMemberCouponMapper.xml
@@ -11,8 +11,14 @@
        left join mall_goods_coupon b on b.id = a.coupon_id
        <where>
            a.member_id=#{record.memberId}
            and a.expire_time &gt;= #{record.expireTime}
            <if test="record.state != null and record.state != ''">
            <if test="record.state == 1">
                and a.state=#{record.state}
                and a.expire_time &gt;= #{record.expireTime}
            </if>
            <if test="record.state == 2">
                and a.state=#{record.state}
            </if>
            <if test="record.state == 3">
                and a.state=#{record.state}
            </if>
            <if test="record.goodsId != null and record.goodsId != ''">