package com.hotwj.platform.securityManagement.trainingParticipant.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hotwj.platform.securityManagement.trainingParticipant.domain.HotTrainingParticipant;
import com.hotwj.platform.securityManagement.trainingParticipant.domain.vo.DriverLearningRecordVo;
import com.hotwj.platform.securityManagement.trainingParticipant.domain.vo.HotTrainingParticipantVo;
import com.hotwj.platform.securityManagement.trainingParticipant.domain.vo.TrainingParticipantStatVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.Date;
import java.util.List;

@Mapper
public interface HotTrainingParticipantMapper extends BaseMapperPlus<HotTrainingParticipant, HotTrainingParticipantVo> {

    List<DriverLearningRecordVo> selectDriverLearningRecordPage(Page<DriverLearningRecordVo> page,
                                                                @Param("companyId") Long companyId,
                                                                @Param("userId") String userId,
                                                                @Param("now") Date now);

    List<TrainingParticipantStatVo> selectTrainingParticipantStats(@Param("trainingIds") List<Long> trainingIds);
}
