package com.zhongzheng.modules.order.mapper;

import com.zhongzheng.modules.order.bo.CouponQueryBo;
import com.zhongzheng.modules.order.domain.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongzheng.modules.order.vo.CouponVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author change
 * @date 2021-06-15
 */
public interface CouponMapper extends BaseMapper<Coupon> {


    /**
     * 查詢是否課程有活動
     * @author chang
     * @date 2021/7/1 15:53
     * @param goodsId
     * @param couponId
     * @return Integer
     */
    Integer selectCountCon(@Param("goodsId") Long goodsId, @Param("couponId") Long couponId);

    List<CouponVo> queryIssueListCoupon(CouponQueryBo bo);
}
