|
@@ -241,8 +241,8 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
|
CheckTask ct = vo.getCheckTask();
|
|
|
ct.setUnexistCount(getCount(examId, ScanStatus.UNEXIST, courseCode, coursePaperId, dpr));
|
|
|
ct.setUnexistCheckedCount(getCount(examId, ScanStatus.MANUAL_ABSENT, courseCode, coursePaperId, dpr));
|
|
|
- ct.setAssignedCount(scanPaperService.getAssignedCount(examId, false, courseCode, coursePaperId, dpr));
|
|
|
- ct.setAssignedCheckedCount(scanPaperService.getAssignedCount(examId, true, courseCode, coursePaperId, dpr));
|
|
|
+ ct.setAssignedCount(getAssignedCount(examId, false, courseCode, coursePaperId, dpr));
|
|
|
+ ct.setAssignedCheckedCount(getAssignedCount(examId, true, courseCode, coursePaperId, dpr));
|
|
|
ct.setAbsentCheckCount(getOmrAbsentCount(examId, false, courseCode, coursePaperId, dpr));
|
|
|
ct.setAbsentCheckedCount(getOmrAbsentCount(examId, true, courseCode, coursePaperId, dpr));
|
|
|
ct.setObjectiveCheckCount(scanOmrTaskService.getCount(examId, OmrTaskStatus.WAITING, courseCode, coursePaperId, dpr));
|
|
@@ -1104,4 +1104,15 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
|
private int getCount(Long examId, String paperNumber, Double start, Double end) {
|
|
|
return baseMapper.getCountByScoreRange(examId, paperNumber, start, end);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int getAssignedCount(Long examId, Boolean checked, String courseCode, String coursePaperId, DataPermissionRule dpr) {
|
|
|
+ MarkStudent markStudent = new MarkStudent();
|
|
|
+ markStudent.setExamId(examId);
|
|
|
+ markStudent.setCourseCode(courseCode);
|
|
|
+ markStudent.setCoursePaperId(coursePaperId);
|
|
|
+ markStudent.setAssigned(true);
|
|
|
+ markStudent.setAssignConfirmed(checked);
|
|
|
+ return baseMapper.countAssigned(markStudent, dpr);
|
|
|
+ }
|
|
|
}
|