package cn.ysk.cashier.mybatis.mapper;

import cn.ysk.cashier.mybatis.entity.TbCouponProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 活动赠送商品表(TbActivateProduct)表数据库访问层
 *
 * @author ww
 * @since 2024-08-20 11:27:40
 */
public interface TbCouponProductMapper extends BaseMapper<TbCouponProduct> {


    @Select(" select " +
            "  *" +
            " from tb_coupon_product " +
            " where " +
            " coupon_id = #{couponId}")
    List<TbCouponProduct> queryAllByCouponId(@Param("couponId") Integer couponId);
}

