|
@@ -47,6 +47,7 @@ import com.qmth.themis.business.entity.TEExamActivity;
|
|
|
import com.qmth.themis.business.enums.BreachCancelTypeEnum;
|
|
|
import com.qmth.themis.business.enums.BreachTypeEnum;
|
|
|
import com.qmth.themis.business.enums.ExceptionEnum;
|
|
|
+import com.qmth.themis.business.enums.InvigilateMonitorStatusEnum;
|
|
|
import com.qmth.themis.business.enums.VerifyExceptionEnum;
|
|
|
import com.qmth.themis.business.service.TEExamActivityService;
|
|
|
import com.qmth.themis.business.service.TEExamService;
|
|
@@ -123,15 +124,24 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
Map<Long, Long> absentMap = new HashMap<Long, Long>();
|
|
|
Date now = new Date();
|
|
|
for (Long acId : totalMap.keySet()) {
|
|
|
- ExamActivityCacheBean ac = examActivityService.getExamActivityCacheBean(acId);
|
|
|
- Long end = ac.getStartTime() + (ac.getOpeningSeconds() * 1000);
|
|
|
- if (now.getTime() > end) {// 场次开考时间结束,未开考的都是缺考
|
|
|
- Long done = doneMap.get(acId);
|
|
|
- if (done == null) {
|
|
|
- done = 0L;
|
|
|
- }
|
|
|
- absentMap.put(acId, totalMap.get(acId) - done);
|
|
|
- }
|
|
|
+// ExamActivityCacheBean ac = examActivityService.getExamActivityCacheBean(acId);
|
|
|
+// Long end = ac.getStartTime() + (ac.getOpeningSeconds() * 1000);
|
|
|
+// if (now.getTime() > end) {// 场次开考时间结束,未开考的都是缺考
|
|
|
+// Long done = doneMap.get(acId);
|
|
|
+// if (done == null) {
|
|
|
+// done = 0L;
|
|
|
+// }
|
|
|
+// absentMap.put(acId, totalMap.get(acId) - done);
|
|
|
+// }
|
|
|
+ ExamActivityCacheBean ac = examActivityService.getExamActivityCacheBean(acId);
|
|
|
+ ExamCacheBean exam=examService.getExamCacheBean(ac.getExamId());
|
|
|
+ if (InvigilateMonitorStatusEnum.FINISHED.equals(exam.getMonitorStatus())) {// 结束监考的,未考试的都是缺考
|
|
|
+ Long done = doneMap.get(acId);
|
|
|
+ if (done == null) {
|
|
|
+ done = 0L;
|
|
|
+ }
|
|
|
+ absentMap.put(acId, totalMap.get(acId) - done);
|
|
|
+ }
|
|
|
}
|
|
|
Long absentNum = 0L;
|
|
|
if (absentMap.size() > 0) {
|