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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hotwj.platform.securityManagement.trainingAnswer.domain.HotTrainingAnswerRecord;
import com.hotwj.platform.securityManagement.trainingAnswer.domain.bo.TrainingAnswerRecordBo;
import com.hotwj.platform.securityManagement.trainingAnswer.domain.vo.HotTrainingAnswerRecordVo;
import com.hotwj.platform.securityManagement.trainingAnswer.domain.vo.HotTrainingWrongQuestionReviewVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 培训课程答题详情记录Mapper接口
 *
 * @author shihongwei
 * @date 2026-02-16
 */
@Mapper
public interface HotTrainingAnswerRecordMapper extends BaseMapperPlus<HotTrainingAnswerRecord, HotTrainingAnswerRecordVo> {

    java.util.List<HotTrainingAnswerRecordVo> selectStudyDetailByTrainingAndUser(
        @Param("companyId") Long companyId,
        @Param("trainingId") Long trainingId,
        @Param("userId") String userId
    );

    java.util.List<HotTrainingAnswerRecordVo> selectPlanStudyDetailByTrainingAndUser(
        @Param("companyId") Long companyId,
        @Param("trainingId") Long trainingId,
        @Param("userId") String userId
    );

    java.util.List<HotTrainingWrongQuestionReviewVo> selectWrongQuestionReviewList(@Param("companyId") Long companyId,
                                                                         @Param("userId") String userId,
                                                                         @Param("bo") TrainingAnswerRecordBo bo);

}
