package com.keao.edu.user.dao; import com.keao.edu.common.dal.BaseDAO; import com.keao.edu.user.api.enums.StudentExamResultApiDto; import com.keao.edu.user.dto.StudentExamResultStatisticsDto; import com.keao.edu.user.entity.StudentExamResult; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; public interface StudentExamResultDao extends BaseDAO { int batchInsert(@Param("results") List results); int deleteWithRegists(@Param("registIds") List registIds); /** * @describe 获取指定考级项目的考级结果 * @author Joburgess * @date 2020.07.24 * @param examId: * @return java.util.List */ List getWithExam(@Param("examId") Long examId); /** * @describe 查询考试结果 * @author Joburgess * @date 2020.06.30 * @param params: * @return java.util.List */ List queryStudentExamResult(Map params); int countStudentExamResult(Map params); /** * @describe 考试结果统计信息 * @author Joburgess * @date 2020.06.30 * @param organIds: * @param examId: * @return com.keao.edu.user.dto.StudentExamResultStatisticsDto */ StudentExamResultStatisticsDto getStudentExamResultStatisticsInfo(@Param("organIds") List organIds, @Param("examId") Integer examId); /** * 获取考试次数 * @param studentIds * @param tenantId * @return */ List> countExamNum(@Param("studentIds") List studentIds, @Param("tenantId") String tenantId); /** * 获取考试结果 * @param examRegistrationId * @return */ StudentExamResult findByRegistrationId(Long examRegistrationId); /** * 获取考试结果 * @param examRegistrationId * @return */ StudentExamResultApiDto getStudentExamResultApiDto(Long examRegistrationId); /** * 确认考生 * @param examRegistrationId */ void confirmStudent(Long examRegistrationId); /** * 修改学员考试状态 * @param examRegistrationId * @param finishedExam */ void updateFinishedExam(@Param("examRegistrationId") Long examRegistrationId, @Param("finishedExam") Integer finishedExam); /** * 获取学员房间关联 * @param roomId * @param userId */ StudentExamResult findByRoomIdAndUserId(@Param("roomId") String roomId, @Param("userId") String userId); /** * 修改学员SessionId * @param examRegistrationId * @param sessionId */ void updateSessionId(@Param("examRegistrationId") Long examRegistrationId, @Param("sessionId") String sessionId); /** * 修改屏蔽用户 * @param examRegistrationId * @param shieldUserId */ void updateShield(@Param("examRegistrationId") Long examRegistrationId, @Param("shieldUserId") String shieldUserId); }