package cn.ysk.cashier.mybatis.mapper;

import cn.ysk.cashier.dto.shop.TbShopUserQueryCriteria;
import cn.ysk.cashier.mybatis.entity.TbActivate;
import cn.ysk.cashier.vo.ShopUserInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【tb_activate】的数据库操作Mapper
* @createDate 2024-09-03 14:08:30
* @Entity cn.ysk.cashier.mybatis.pojo.TbActivatetb
*/
public interface TbActivateMapper extends BaseMapper<TbActivate> {


    @Select("<script>" +
            "SELECT " +
            " * " +
            "FROM tb_activate act " +
            "where " +
            "   act.coupon_id=#{couponId}" +
            "</script>")
    List<TbActivate> queActByCouponId(@Param("couponId") Integer couponId);
}




