package com.sqx.modules.activity.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.activity.bo.ShopActivityBO;
import com.sqx.modules.activity.entity.ActivityShop;
import com.sqx.modules.activity.vo.ActivityShopVO;
import com.sqx.modules.activity.vo.ShopActivityGroupVO;
import com.sqx.modules.activity.vo.ShopActivityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 活动商家
 * @author : codingliang
 * @date : 2024-6-17
 */
@Mapper
public interface ActivityShopDao extends BaseMapper<ActivityShop> {

     IPage<ActivityShopVO> pageShopByActivityId(@Param("pages") Page<ActivityShop> pages, @Param("activityId") Long activityId);

    ShopActivityGroupVO getShopActivityGroup(@Param("shopId") Long shopId);

    List<ShopActivityVO> getActivityByShopIds(@Param("shopIds") List<Long> shopIds);

    List<ShopActivityBO> getShopActivityBOByShopId(@Param("shopId") Long shopId);
}
