|
@@ -68,22 +68,26 @@ public interface ExamStudentDao
|
|
public ExamStudent findBySchoolIdAndSubjectCodeAndStudentCodeAndRemark(Integer schoolId, String subjectCode,
|
|
public ExamStudent findBySchoolIdAndSubjectCodeAndStudentCodeAndRemark(Integer schoolId, String subjectCode,
|
|
String studentCode, String examSeqCode);
|
|
String studentCode, String examSeqCode);
|
|
|
|
|
|
- @Query("select sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 49 then 1 else 0 end),"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 50 and 59 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 69 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 70 and 79 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 80 and 89 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 90 and 100 then 1 else 0 end) "
|
|
|
|
|
|
+ @Query("select sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 49.5 then 1 else 0 end),"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 50 and 59.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 69.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 70 and 79.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 80 and 89.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 90 and 100 then 1 else 0 end),"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 59.5 then 1 else 0 end), "
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 100 then 1 else 0 end) "
|
|
+ " from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.upload=?3 and s.absent=?4 ")
|
|
+ " from ExamStudent s where s.examId=?1 and s.subjectCode=?2 and s.upload=?3 and s.absent=?4 ")
|
|
public List<Object[]> statisticsByExamIdAndSubjectCode(Integer examId,
|
|
public List<Object[]> statisticsByExamIdAndSubjectCode(Integer examId,
|
|
String code, Boolean upload, boolean absent);
|
|
String code, Boolean upload, boolean absent);
|
|
|
|
|
|
- @Query("select sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 49 then 1 else 0 end),"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 50 and 59 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 69 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 70 and 79 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 80 and 89 then 1 else 0 end) ,"
|
|
|
|
- + "sum(case when (s.objectiveScore + s.subjectiveScore) between 90 and 100 then 1 else 0 end) "
|
|
|
|
|
|
+ @Query("select sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 49.5 then 1 else 0 end),"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 50 and 59.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 69.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 70 and 79.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 80 and 89.5 then 1 else 0 end) ,"
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 90 and 100 then 1 else 0 end), "
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 0 and 59.5 then 1 else 0 end), "
|
|
|
|
+ + "sum(case when (s.objectiveScore + s.subjectiveScore) between 60 and 100 then 1 else 0 end) "
|
|
+ " from ExamStudent s where s.examId=?1 and s.subjectCode=?2 ")
|
|
+ " from ExamStudent s where s.examId=?1 and s.subjectCode=?2 ")
|
|
public List<Object[]> statisticsByExamIdAndSubjectCode(Integer examId,
|
|
public List<Object[]> statisticsByExamIdAndSubjectCode(Integer examId,
|
|
String code);
|
|
String code);
|