|
@@ -72,12 +72,6 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
@Resource
|
|
|
TEExamService teExamService;
|
|
|
|
|
|
- @Resource
|
|
|
- TEExamActivityService teExamActivityService;
|
|
|
-
|
|
|
- @Resource
|
|
|
- TEExamStudentService teExamStudentService;
|
|
|
-
|
|
|
/**
|
|
|
* 考试概览
|
|
|
*
|
|
@@ -94,26 +88,14 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
public Map<String, Object> examView(Long orgId, Long examId, Long examActivityId, String roomCode, String courseCode,
|
|
|
String name, String identity) {
|
|
|
// 缺考人数
|
|
|
- Integer examTotal = 0, actualExamTotal = 0, absentNum = 0, completeOffExamTotal = 0;
|
|
|
+ Integer examTotal = 0, actualExamTotal = 0, absentNum = 0;
|
|
|
ExamCacheBean exam = examService.getExamCacheBean(examId);
|
|
|
- // 应考人数&实考人数
|
|
|
-// List<Integer> list = tOeExamRecordService.findByViewAdmin(orgId, examId, examActivityId, roomCode, courseCode, exam.getMonitorStatus());
|
|
|
-// if (Objects.nonNull(list) && list.size() > 0) {
|
|
|
-// examTotal = list.get(0);
|
|
|
-// actualExamTotal = list.get(1);
|
|
|
-// completeOffExamTotal = list.get(2);
|
|
|
-// }
|
|
|
List<TEExamSummary> teExamSummaryList = themisCacheService.getExamSummaryCache(examId, examActivityId, roomCode);
|
|
|
for (TEExamSummary t : teExamSummaryList) {
|
|
|
examTotal = examTotal + t.getTotalCount();
|
|
|
- actualExamTotal = actualExamTotal + t.getFinishCount();
|
|
|
absentNum = absentNum + t.getAbsentCount();
|
|
|
+ actualExamTotal = examTotal.intValue() - absentNum.intValue();
|
|
|
}
|
|
|
-
|
|
|
- if (exam.getMonitorStatus() == InvigilateMonitorStatusEnum.FINISHED) {// 结束监考的,未考试的都是缺考
|
|
|
- absentNum = examTotal.intValue() - actualExamTotal.intValue();
|
|
|
- }
|
|
|
- completeOffExamTotal = absentNum;
|
|
|
// 每日已考人数
|
|
|
List<Map<String, Object>> doneCountByDay = tOeExamRecordMapper.getDoneCountByDay(orgId, examId, examActivityId, roomCode, courseCode);
|
|
|
|
|
@@ -122,8 +104,7 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
ret.put("examTotal", examTotal.intValue());
|
|
|
ret.put("actualExamTotal", actualExamTotal.intValue());
|
|
|
ret.put("deficiencyExamTotal", absentNum.intValue());
|
|
|
-// ret.put("completeOffExamTotal", examTotal.intValue() - actualExamTotal.intValue() - absentNum.intValue());
|
|
|
- ret.put("completeOffExamTotal", completeOffExamTotal);
|
|
|
+ ret.put("completeOffExamTotal", absentNum);
|
|
|
ret.put("examTotalList", doneCountByDay);
|
|
|
return ret;
|
|
|
}
|