xiaoyong931011
2023-09-19 e2e8e9de828dc83db2fb254f29e544d6e7ff4d57
src/main/resources/mapper/modules/MallMemberCouponMapper.xml
@@ -33,6 +33,16 @@
            a.*
        from mall_member_coupon a
        where a.expire_time <= #{date}
        and a.state = 1
    </select>
    <select id="selectListByMemberIdAndGoodsIdAndCouponId" resultType="cc.mrbird.febs.mall.entity.MallMemberCoupon">
        select
            a.*
        from mall_member_coupon a
        where a.member_id = #{memberId}
        and a.goods_id = #{goodsId}
        and a.coupon_id = #{couponId}
    </select>
</mapper>