StudentExamResultDao.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.keao.edu.user.dao;
  2. import com.keao.edu.common.dal.BaseDAO;
  3. import com.keao.edu.user.api.enums.StudentExamResultApiDto;
  4. import com.keao.edu.user.dto.StudentExamResultStatisticsDto;
  5. import com.keao.edu.user.entity.StudentExamResult;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. import java.util.Map;
  9. public interface StudentExamResultDao extends BaseDAO<Long, StudentExamResult> {
  10. int batchInsert(@Param("results") List<StudentExamResult> results);
  11. int deleteWithRegists(@Param("registIds") List<Long> registIds);
  12. /**
  13. * @describe 获取指定考级项目的考级结果
  14. * @author Joburgess
  15. * @date 2020.07.24
  16. * @param examId:
  17. * @return java.util.List<com.keao.edu.user.entity.StudentExamResult>
  18. */
  19. List<StudentExamResult> getWithExam(@Param("examId") Long examId);
  20. /**
  21. * @describe 查询考试结果
  22. * @author Joburgess
  23. * @date 2020.06.30
  24. * @param params:
  25. * @return java.util.List<com.keao.edu.user.entity.StudentExamResult>
  26. */
  27. List<StudentExamResult> queryStudentExamResult(Map<String, Object> params);
  28. int countStudentExamResult(Map<String, Object> params);
  29. /**
  30. * @describe 考试结果统计信息
  31. * @author Joburgess
  32. * @date 2020.06.30
  33. * @param organIds:
  34. * @param examId:
  35. * @return com.keao.edu.user.dto.StudentExamResultStatisticsDto
  36. */
  37. StudentExamResultStatisticsDto getStudentExamResultStatisticsInfo(@Param("organIds") List<Integer> organIds,
  38. @Param("examId") Integer examId);
  39. /**
  40. * 获取考试次数
  41. * @param studentIds
  42. * @param tenantId
  43. * @return
  44. */
  45. List<Map<Integer, Integer>> countExamNum(@Param("studentIds") List<Integer> studentIds, @Param("tenantId") String tenantId);
  46. /**
  47. * 获取考试结果
  48. * @param examRegistrationId
  49. * @return
  50. */
  51. StudentExamResult findByRegistrationId(Long examRegistrationId);
  52. /**
  53. * 获取考试结果
  54. * @param examRegistrationId
  55. * @return
  56. */
  57. StudentExamResultApiDto getStudentExamResultApiDto(Long examRegistrationId);
  58. /**
  59. * 确认考生
  60. * @param examRegistrationId
  61. */
  62. void confirmStudent(Long examRegistrationId);
  63. /**
  64. * 修改学员考试状态
  65. * @param examRegistrationId
  66. * @param finishedExam
  67. */
  68. void updateFinishedExam(@Param("examRegistrationId") Long examRegistrationId, @Param("finishedExam") Integer finishedExam);
  69. /**
  70. * 获取学员房间关联
  71. * @param roomId
  72. * @param userId
  73. */
  74. StudentExamResult findByRoomIdAndUserId(@Param("roomId") String roomId, @Param("userId") String userId);
  75. /**
  76. * 修改学员SessionId
  77. * @param examRegistrationId
  78. * @param sessionId
  79. */
  80. void updateSessionId(@Param("examRegistrationId") Long examRegistrationId, @Param("sessionId") String sessionId);
  81. /**
  82. * 修改屏蔽用户
  83. * @param examRegistrationId
  84. * @param shieldUserId
  85. */
  86. void updateShield(@Param("examRegistrationId") Long examRegistrationId, @Param("shieldUserId") String shieldUserId);
  87. }