package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.bean.result.TEAudioResult;
import com.qmth.themis.business.entity.TEAudio;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 场次音频表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2022-08-30
 */
public interface TEAudioMapper extends BaseMapper<TEAudio> {

    /**
     * 根据场次id查询音频信息
     *
     * @param iPage
     * @param activityId
     * @return
     */
    IPage<TEAudio> query(IPage<Map> iPage, @Param("activityId") Long activityId);

    /**
     * 根据场次id查询音频信息
     *
     * @param activityId
     * @return
     */
    List<TEAudioResult> queryResult(@Param("activityId") Long activityId);
}
