package com.njcn.gather.event.eventlist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.gather.event.eventlist.pojo.param.EventListQueryParam;
import com.njcn.gather.event.eventlist.pojo.po.MpEventDetailPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 暂态事件列表 Mapper。
 */
public interface EventListMapper extends BaseMapper<MpEventDetailPO> {

    Page<MpEventDetailPO> selectTransientPage(Page<MpEventDetailPO> page, @Param("param") EventListQueryParam param);

    List<MpEventDetailPO> selectTransientExportList(@Param("param") EventListQueryParam param, @Param("limit") Integer limit);

    MpEventDetailPO selectTransientDetail(@Param("eventId") String eventId);

    List<MpEventDetailPO> selectTransientDetailsByIds(@Param("eventIds") List<String> eventIds);
}
