|
@@ -24,11 +24,14 @@ import com.qmth.themis.business.bean.backend.ExamDeficiencyListBean;
|
|
|
import com.qmth.themis.business.bean.backend.ExamExceptionDetailListBean;
|
|
|
import com.qmth.themis.business.bean.backend.ExamExceptionListBean;
|
|
|
import com.qmth.themis.business.bean.backend.ExamReexamListBean;
|
|
|
+import com.qmth.themis.business.bean.backend.ExamStudentLogDetailListBean;
|
|
|
+import com.qmth.themis.business.bean.backend.ExamStudentLogListBean;
|
|
|
import com.qmth.themis.business.bean.backend.ExamViewCountListBean;
|
|
|
import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
|
|
|
import com.qmth.themis.business.cache.bean.ExamCacheBean;
|
|
|
import com.qmth.themis.business.dao.TEExamBreachLogMapper;
|
|
|
import com.qmth.themis.business.dao.TEExamReexamMapper;
|
|
|
+import com.qmth.themis.business.dao.TEExamStudentLogMapper;
|
|
|
import com.qmth.themis.business.dao.TEExamStudentMapper;
|
|
|
import com.qmth.themis.business.dao.TIeInvigilateExceptionInfoMapper;
|
|
|
import com.qmth.themis.business.dao.TOeExamRecordMapper;
|
|
@@ -62,6 +65,9 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
|
|
|
@Resource
|
|
|
TEExamBreachLogMapper examBreachLogMapper;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ TEExamStudentLogMapper examStudentLogMapper;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> examView(Long examId, Long examActivityId, String roomCode, String courseCode,
|
|
@@ -331,5 +337,30 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public BasePage examStudentLogList(Long examId, Long examActivityId, String roomCode, String courseCode,
|
|
|
+ String name, String identity, int pageNumber, int pageSize) {
|
|
|
+ Page<ExamStudentLogListBean> ipage=new Page<>(pageNumber, pageSize);
|
|
|
+ ipage.addOrder(OrderItem.asc("t.id"));
|
|
|
+ IPage<ExamStudentLogListBean> total = examStudentMapper.getPageForStudentLog(ipage,examId, examActivityId, roomCode, courseCode,name,identity);
|
|
|
+ List<ExamStudentLogListBean> data=total.getRecords();
|
|
|
+ if(data==null||data.size()==0) {
|
|
|
+ BasePage basePage = new BasePage(total.getRecords(), total.getCurrent(), total.getSize(), total.getTotal());
|
|
|
+ return basePage;
|
|
|
+ }
|
|
|
+ ExamCacheBean exam=examService.getExamCacheBean(examId);
|
|
|
+ for(ExamStudentLogListBean b:data) {
|
|
|
+ b.setExamName(exam.getName());
|
|
|
+ }
|
|
|
+ BasePage basePage = new BasePage(total.getRecords(), total.getCurrent(), total.getSize(), total.getTotal());
|
|
|
+ return basePage;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<ExamStudentLogDetailListBean> examStudentLogListDetail(Long examStudentId) {
|
|
|
+ List<ExamStudentLogDetailListBean> ret=examStudentLogMapper.getExamStudentLogList(examStudentId);
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|