|
@@ -33,14 +33,17 @@ import com.qmth.themis.business.bean.backend.ExaminationMonitorCountBean;
|
|
import com.qmth.themis.business.bean.backend.ExaminationMonitorHourWarnCountBean;
|
|
import com.qmth.themis.business.bean.backend.ExaminationMonitorHourWarnCountBean;
|
|
import com.qmth.themis.business.bean.backend.ExaminationMonitorWarnDistributionBean;
|
|
import com.qmth.themis.business.bean.backend.ExaminationMonitorWarnDistributionBean;
|
|
import com.qmth.themis.business.bean.backend.InvigilateListPatrolReportBean;
|
|
import com.qmth.themis.business.bean.backend.InvigilateListPatrolReportBean;
|
|
|
|
+import com.qmth.themis.business.bean.backend.WarningNotifyBean;
|
|
import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamCacheBean;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
import com.qmth.themis.business.constant.SystemConstant;
|
|
|
|
+import com.qmth.themis.business.dao.TBExamInvigilateUserMapper;
|
|
import com.qmth.themis.business.dao.TEExamBreachLogMapper;
|
|
import com.qmth.themis.business.dao.TEExamBreachLogMapper;
|
|
import com.qmth.themis.business.dao.TEExamReexamMapper;
|
|
import com.qmth.themis.business.dao.TEExamReexamMapper;
|
|
import com.qmth.themis.business.dao.TEExamStudentLogMapper;
|
|
import com.qmth.themis.business.dao.TEExamStudentLogMapper;
|
|
import com.qmth.themis.business.dao.TEExamStudentMapper;
|
|
import com.qmth.themis.business.dao.TEExamStudentMapper;
|
|
import com.qmth.themis.business.dao.TIeInvigilateExceptionInfoMapper;
|
|
import com.qmth.themis.business.dao.TIeInvigilateExceptionInfoMapper;
|
|
|
|
+import com.qmth.themis.business.dao.TIeInvigilateWarnInfoMapper;
|
|
import com.qmth.themis.business.dao.TOeExamRecordMapper;
|
|
import com.qmth.themis.business.dao.TOeExamRecordMapper;
|
|
import com.qmth.themis.business.entity.TEExamActivity;
|
|
import com.qmth.themis.business.entity.TEExamActivity;
|
|
import com.qmth.themis.business.enums.BreachTypeEnum;
|
|
import com.qmth.themis.business.enums.BreachTypeEnum;
|
|
@@ -68,6 +71,12 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
TIeInvigilateExceptionInfoMapper invigilateExceptionInfoMapper;
|
|
TIeInvigilateExceptionInfoMapper invigilateExceptionInfoMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBExamInvigilateUserMapper examInvigilateUserMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TIeInvigilateWarnInfoMapper invigilateWarnInfoMapper;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
TEExamReexamMapper examReexamMapper;
|
|
TEExamReexamMapper examReexamMapper;
|
|
@@ -482,4 +491,34 @@ public class TIeReportServiceImpl implements TIeReportService {
|
|
}
|
|
}
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<String> warnMsg() {
|
|
|
|
+ List<String> ret=new ArrayList<String>();
|
|
|
|
+ List<WarningNotifyBean> list=invigilateWarnInfoMapper.findLastMsg(6);
|
|
|
|
+ if(list!=null&&list.size()>0) {
|
|
|
|
+ for(WarningNotifyBean b:list) {
|
|
|
|
+ StringBuilder sb=new StringBuilder("* ");
|
|
|
|
+ sb.append(b.getCreateTime()).append(" ").append(b.getName()).append(" (证件号:").append(b.getIdentity()).append(") ").append(b.getInfo());
|
|
|
|
+ List<Map<String,String>> users=examInvigilateUserMapper.getInvigilateUsers(b.getExamId(),b.getRoomCode());
|
|
|
|
+ if(users!=null&&users.size()>0) {
|
|
|
|
+ StringBuilder usersb=new StringBuilder();
|
|
|
|
+ for(Map<String,String> map:users) {
|
|
|
|
+ if(map!=null) {
|
|
|
|
+ String lname=map.get("loginName");
|
|
|
|
+ String name=map.get("name");
|
|
|
|
+ if(StringUtils.isNotBlank(lname)&&StringUtils.isNotBlank(name)) {
|
|
|
|
+ usersb.append(lname).append("(账号:").append(name).append(") ");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(usersb.length()>0) {
|
|
|
|
+ sb.append(",系统已提示").append(usersb).append("进行人工干预");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ret.add(sb.toString());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
}
|
|
}
|