|
@@ -66,12 +66,13 @@ 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;
|
|
|
+ Integer examTotal = 0, actualExamTotal = 0, absentNum = 0, completeOffExamTotal = 0;
|
|
|
// 应考人数&实考人数
|
|
|
List<Integer> list = tOeExamRecordService.findByViewAdmin(orgId, examId, examActivityId, roomCode, courseCode);
|
|
|
if (Objects.nonNull(list) && list.size() > 0) {
|
|
|
examTotal = list.get(0);
|
|
|
actualExamTotal = list.get(1);
|
|
|
+ completeOffExamTotal = list.get(2);
|
|
|
}
|
|
|
ExamCacheBean exam = examService.getExamCacheBean(examId);
|
|
|
if (exam.getMonitorStatus() == InvigilateMonitorStatusEnum.FINISHED) {// 结束监考的,未考试的都是缺考
|
|
@@ -81,10 +82,12 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
List<Map<String, Object>> doneCountByDay = tOeExamRecordMapper.getDoneCountByDay(orgId, examId, examActivityId, roomCode, courseCode);
|
|
|
|
|
|
Map<String, Object> ret = new HashMap<String, Object>();
|
|
|
+ ret.put("monitorStatus", exam.getMonitorStatus());
|
|
|
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", examTotal.intValue() - actualExamTotal.intValue() - absentNum.intValue());
|
|
|
+ ret.put("completeOffExamTotal", completeOffExamTotal);
|
|
|
ret.put("examTotalList", doneCountByDay);
|
|
|
return ret;
|
|
|
}
|