package com.ycwl.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycwl.basic.model.pc.couponRecord.entity.CouponRecordEntity;
import com.ycwl.basic.model.pc.couponRecord.req.CouponRecordPageQueryReq;
import com.ycwl.basic.model.pc.couponRecord.resp.CouponRecordPageResp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponRecordMapper extends BaseMapper<CouponRecordEntity> {
    List<CouponRecordEntity> queryByUserWithGoodsId(Long scenicId, Long memberId, String goodsId);
    
    List<CouponRecordEntity> queryByMemberIdAndFaceId(Long memberId, Long faceId);
    
    CouponRecordEntity queryByMemberIdAndFaceIdAndType(Long memberId, Long faceId, Integer type);
    
    List<CouponRecordPageResp> selectByPageQuery(CouponRecordPageQueryReq query);
}
