MarkStudentMapper.java 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.qmth.teachcloud.mark.mapper;
  2. import java.util.List;
  3. import com.qmth.teachcloud.common.entity.BasicTeachClazz;
  4. import org.apache.ibatis.annotations.Param;
  5. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  6. import com.baomidou.mybatisplus.core.metadata.IPage;
  7. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  8. import com.qmth.teachcloud.common.bean.dto.DataPermissionRule;
  9. import com.qmth.teachcloud.mark.bean.archivescore.*;
  10. import com.qmth.teachcloud.mark.bean.scananswer.AnswerQueryDomain;
  11. import com.qmth.teachcloud.mark.bean.scananswer.AnswerQueryVo;
  12. import com.qmth.teachcloud.mark.bean.student.StudentQuery;
  13. import com.qmth.teachcloud.mark.bean.student.StudentVo;
  14. import com.qmth.teachcloud.mark.dto.UnexistStudentDto;
  15. import com.qmth.teachcloud.mark.dto.mark.score.StudentScoreDetailDto;
  16. import com.qmth.teachcloud.mark.entity.MarkStudent;
  17. /**
  18. * <p>
  19. * 考试考生库 Mapper 接口
  20. * </p>
  21. *
  22. * @author xf
  23. * @since 2023-09-22
  24. */
  25. public interface MarkStudentMapper extends BaseMapper<MarkStudent> {
  26. IPage<StudentScoreDetailDto> pageStudentScore(@Param("page") Page<StudentScoreDetailDto> page,
  27. @Param("examId") Long examId, @Param("paperNumber") String paperNumber, @Param("college") String college, @Param("majorName") String majorName,
  28. @Param("className") String className, @Param("teacher") String teacher, @Param("filter") Integer filter,
  29. @Param("status") String status, @Param("breach") Boolean breach, @Param("startScore") Double startScore,
  30. @Param("endScore") Double endScore, @Param("subScore") Double subScore,
  31. @Param("objectiveScoreLt") Double objectiveScoreLt, @Param("studentName") String studentName,
  32. @Param("studentCode") String studentCode, @Param("orderType") String orderType, @Param("orderField") String orderField);
  33. List<MarkStudent> listAbsentOrBreachMarkTaskStudent(@Param("examId") Long examId,
  34. @Param("paperNumber") String paperNumber);
  35. IPage<MarkStudent> listUnMarkTaskStudent(@Param("page") Page<MarkStudent> page, @Param("examId") Long examId,
  36. @Param("paperNumber") String paperNumber, @Param("groupNumber") Integer groupNumber);
  37. StudentVo findOne(@Param("query") StudentQuery query);
  38. IPage<AnswerQueryVo> queryPage(Page<AnswerQueryVo> page, @Param("query") AnswerQueryDomain query, @Param("dpr") DataPermissionRule dpr);
  39. List<String> querySummary(@Param("query") AnswerQueryDomain query, @Param("dpr") DataPermissionRule dpr);
  40. List<Long> findIdByExamIdAndPaperNumber(@Param("examId") Long examId, @Param("paperNumber") String paperNumber);
  41. List<ArchiveStudentVo> studentList(@Param("req") ArchiveStudentQuery query);
  42. OverViewVo overview(@Param("req") ArchiveStudentQuery query);
  43. int getCountByScoreRange(@Param("examId") Long examId, @Param("paperNumber") String paperNumber,
  44. @Param("start") Double start, @Param("end") Double end);
  45. List<CollegeVo> college(@Param("req") ArchiveStudentQuery query);
  46. List<ClassVo> classData(@Param("req") ArchiveStudentQuery query);
  47. List<TeacherVo> teacher(@Param("req") ArchiveStudentQuery query);
  48. List<UnexistStudentDto> listUnexistStudentByExamIdAndCoursePaperId(@Param("examId") Long examId, @Param("courseCode") String courseCode, @Param("coursePaperId") String coursePaperId, @Param("status") String status, @Param("dpr") DataPermissionRule dpr);
  49. IPage<ArchiveStudentVo> studentList(@Param("page") Page<ArchiveStudentVo> page, @Param("req") ArchiveStudentQuery query);
  50. List<TeacherClassVo> teacherClass(@Param("req") ArchiveStudentQuery query);
  51. int selectCountByQuery(@Param("markStudent") MarkStudent markStudent, @Param("dpr") DataPermissionRule dpr);
  52. int countAssigned(@Param("markStudent") MarkStudent markStudent, @Param("dpr") DataPermissionRule dpr);
  53. List<MarkStudent> listScanCollegeByExamIdAndCourseCodeAndCoursePaperId(@Param("examId") Long examId, @Param("courseCode") String courseCode, @Param("coursePaperId") String coursePaperId, @Param("status") String status, @Param("dpr") DataPermissionRule dpr);
  54. BasicTeachClazz getBasicTeachClazzById(Long clazzId);
  55. }