KKSU
2024-01-12 9f7c5e673846ac86c83d6a1f9d6d02c02f7ea9f7
src/main/resources/mapper/modules/MallMemberCouponMapper.xml
@@ -32,6 +32,7 @@
        select
        a.*,
        b.cost_amount costAmount,
        b.type type,
        b.real_amount realAmount
        from mall_member_coupon a
        INNER join mall_goods_coupon b on b.id = a.coupon_id and b.state = 2
@@ -40,7 +41,7 @@
                and a.state=#{record.state}
                and a.expire_time >= #{record.expireTime}
        and a.coupon_id in
        <foreach collection = "record.couponIds" item = "item"  separator=","  open = "(" close = ")" >
        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
            #{item}
        </foreach >
        order by a.CREATED_TIME desc