package com.liquidnet.service.kylin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.kylin.dao.KylinArtistPerformanceDao;
import com.liquidnet.service.kylin.entity.KylinArtistPerformance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KylinArtistPerformanceMapper extends BaseMapper<KylinArtistPerformance> {

    /**
     * 根据艺人ID查询关联的演出信息
     *
     * @param artistId 艺人ID
     * @return 演出信息列表
     */
    List<KylinArtistPerformanceDao> selectPerformanceDaoByArtistId(@Param("artistId") String artistId);

    /**
     * 根据演出ID和场次ID查询艺人阵容
     *
     * @param performancesId 演出ID
     * @param timesId        场次ID
     * @return 艺人阵容列表
     */
    List<KylinArtistPerformanceDao> selectArtistsByPerformanceAndTimes(@Param("performancesId") String performancesId, @Param("timesId") String timesId);

}
