package com.xunmei.core.edu.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTask;
import com.xunmei.common.core.domain.edu.dto.CoreEduTrainingTaskPageDto;
import com.xunmei.common.core.domain.edu.dto.CoreEduTrainingTaskReportDto;
import com.xunmei.common.core.domain.edu.vo.CoreEduTrainingTaskDetailVo;
import com.xunmei.common.core.domain.edu.vo.CoreEduTrainingTaskPageVo;
import com.xunmei.common.core.domain.edu.vo.CoreEduTrainingTaskReportVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 教育任务Mapper接口
 *
 * @author xunmei
 * @date 2023-08-27
 */
public interface CoreEduTrainingTaskMapper extends BaseMapper<CoreEduTrainingTask> {

    Integer checkHasTaskIsDone(@Param("list") List<Long> list);

    Page<CoreEduTrainingTaskPageVo> selectPageData(Page<CoreEduTrainingTaskPageVo> page, @Param("request") CoreEduTrainingTaskPageDto request);

    CoreEduTrainingTaskDetailVo selectEduTrainingTaskDetail(@Param("id") Long id);

    List<CoreEduTrainingTaskReportVo> selectReport(@Param("request") CoreEduTrainingTaskReportDto request);
}
