ExamRegistrationDao.java 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. package com.keao.edu.user.dao;
  2. import com.keao.edu.common.dal.BaseDAO;
  3. import com.keao.edu.user.dto.*;
  4. import com.keao.edu.user.entity.ExamRegistration;
  5. import com.keao.edu.user.enums.StudentRegistrationStatusEnum;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. import java.util.Map;
  9. public interface ExamRegistrationDao extends BaseDAO<Long, ExamRegistration> {
  10. List<ExamRegistrationRoomDto> queryExamRegist(Map<String, Object> params);
  11. int countExamRegist(Map<String, Object> params);
  12. int batchUpdate(@Param("regists") List<ExamRegistration> regists);
  13. /**
  14. * @param organIds:
  15. * @return int
  16. * @describe 统计无教室学员
  17. * @author Joburgess
  18. * @date 2020.06.29
  19. */
  20. int countWithoutExamRoomStudentNum(@Param("organIds") List<Integer> organIds,
  21. @Param("examId") Integer examId);
  22. /**
  23. * @param organIds:
  24. * @param examId:
  25. * @return int
  26. * @describe 统计已分配教室学员数量
  27. * @author Joburgess
  28. * @date 2020.06.30
  29. */
  30. int countInExamRoomStudentNum(@Param("organIds") List<Integer> organIds,
  31. @Param("examId") Long examId);
  32. /**
  33. * @param organIds:
  34. * @param examId:
  35. * @return int
  36. * @describe 统计总报名人数
  37. * @author Joburgess
  38. * @date 2020.06.30
  39. */
  40. int countTotalRegistrationStudentNumWithExam(@Param("organIds") List<Integer> organIds,
  41. @Param("examId") Long examId);
  42. /**
  43. * @param selfOrganId: 本级合作单位编号
  44. * @param organIds: 本级及子级合作单位编号
  45. * @param examId: 考级项目编号
  46. * @return com.keao.edu.user.dto.ExamRegistrationStatisticsDto
  47. * @describe 统计招生信息
  48. * @author Joburgess
  49. * @date 2020.06.30
  50. */
  51. ExamRegistrationStatisticsDto getExamRegistrationStaticsInfo(@Param("selfOrganId") Integer selfOrganId,
  52. @Param("organIds") List<Integer> organIds,
  53. @Param("examId") Integer examId);
  54. /**
  55. * @param examId:
  56. * @param studentIds:
  57. * @return java.util.List<com.keao.edu.user.entity.ExamRegistration>
  58. * @describe 获取指定考级项目下指定学员的报名记录
  59. * @author Joburgess
  60. * @date 2020.07.02
  61. */
  62. List<ExamRegistration> getWithExamAndStudents(@Param("examId") Long examId,
  63. @Param("studentIds") List<Integer> studentIds);
  64. /**
  65. * @param registIds:
  66. * @return java.util.List<com.keao.edu.user.entity.ExamRegistration>
  67. * @describe 获取指定报名记录
  68. * @author Joburgess
  69. * @date 2020.07.12
  70. */
  71. List<ExamRegistration> getRegists(@Param("registIds") List<Long> registIds);
  72. /**
  73. * COUNT学员报考记录
  74. *
  75. * @param params
  76. * @return
  77. */
  78. int countStudentList(Map<String, Object> params);
  79. /**
  80. * 获取学员报考列表
  81. *
  82. * @param params
  83. * @return
  84. */
  85. List<ExamRegistrationDto> queryStudentList(Map<String, Object> params);
  86. /**
  87. * 学员考试记录
  88. *
  89. * @param params
  90. * @return
  91. */
  92. List<StudentExamListDto> queryExamList(Map<String, Object> params);
  93. /**
  94. * @param params
  95. * @return
  96. */
  97. int countExamList(Map<String, Object> params);
  98. /**
  99. * 获取报名信息
  100. *
  101. * @return
  102. */
  103. ExamRegistrationDto getExamRegistration(@Param("examRegistrationId") Long examRegistrationId);
  104. /**
  105. * 获取单条报名信息
  106. *
  107. * @param id
  108. * @return
  109. */
  110. ExamRegistration getExamRegistrationInfo(@Param("id") Integer id);
  111. /**
  112. * 根据考试项目id专业id和等级获取已报名的信息
  113. *
  114. * @param examId
  115. * @param subjectId
  116. * @param level
  117. * @return
  118. */
  119. ExamRegistration getRegistration(@Param("examId") Long examId, @Param("studentId") Integer studentId,
  120. @Param("subjectId") Integer subjectId, @Param("level") Integer level,
  121. @Param("statusEnumList") List<StudentRegistrationStatusEnum> statusEnumList);
  122. /**
  123. * 获取学员机构列表
  124. * @param userId
  125. * @return
  126. */
  127. List<Integer> queryStudentTenantId(Integer userId);
  128. /**
  129. * 学生端考级曲库考试列表
  130. * @param params
  131. * @return
  132. */
  133. int countStudentBaseExams(Map<String, Object> params);
  134. /**
  135. * 学生端考级曲库考试列表
  136. * @param params
  137. * @return
  138. */
  139. List<StudentBaseExamsDto> queryStudentBaseExams(Map<String, Object> params);
  140. /**
  141. * 学生端录播详情页面
  142. * @param examRegistrationId
  143. * @return
  144. */
  145. StuRecordDetailDto getStuRecordDetail(Long examRegistrationId);
  146. }