KKSU
2024-01-12 9f7c5e673846ac86c83d6a1f9d6d02c02f7ea9f7
src/main/resources/mapper/modules/MallMemberCouponMapper.xml
@@ -28,6 +28,25 @@
        order by a.CREATED_TIME desc
    </select>
    <select id="selectListCreateInPage" resultType="cc.mrbird.febs.mall.vo.MallMemberCouponVo">
        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
        where
            a.member_id=#{record.memberId}
                and a.state=#{record.state}
                and a.expire_time &gt;= #{record.expireTime}
        and a.coupon_id in
        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
            #{item}
        </foreach >
        order by a.CREATED_TIME desc
    </select>
    <select id="selectListByExpireTime" resultType="cc.mrbird.febs.mall.entity.MallMemberCoupon">
        select
            a.*