package com.sqx.modules.coupon.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.coupon.entity.TbCoupon;
import com.sqx.modules.datacentre.entity.SysUserShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbCouponDao extends BaseMapper<TbCoupon> {

    IPage<TbCoupon> selectCouponByShopId(Page<TbCoupon> pages, List<SysUserShop> userShops);

    IPage<TbCoupon> selectCouponPage(Page<TbCoupon> pages,Long shopId,String shopName);

    List<TbCoupon> selectCouponList(Long shopId,String shopName);

    List<TbCoupon> selectCouponListByShopIdList(@Param("shopIdList") List<Long> shopIdList,@Param("shopName")  String shopName);

}
