|
@@ -166,11 +166,14 @@ public class WarningServiceImpl implements WarningService {
|
|
|
Long examActivityId = ExamRecordCacheUtil.getExamActivityId(recordId);
|
|
|
QueryWrapper<TOeFaceVerifyHistory> tOeFaceVerifyHistoryQueryWrapper = new QueryWrapper<>();
|
|
|
tOeFaceVerifyHistoryQueryWrapper.lambda().eq(TOeFaceVerifyHistory::getExamRecordId, recordId).eq(TOeFaceVerifyHistory::getException, warningEnum.name());
|
|
|
+ ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
|
|
|
int count = faceVerifyHistoryService.count(tOeFaceVerifyHistoryQueryWrapper);
|
|
|
if (count > teConfig.getRealnessCount()) {
|
|
|
TIeInvigilateWarnInfo tIeInvigilateWarnInfo = new TIeInvigilateWarnInfo(examId, examActivityId, recordId, examStudentId, WarningLevelEnum.D15.name(), WarningLevelEnum.D15.getDesc(), warningEnum);
|
|
|
tIeInvigilateWarnInfoService.saveOrUpdate(tIeInvigilateWarnInfo);
|
|
|
this.setWarningCount(recordId);
|
|
|
+ TEExamStudentLog teExamStudentLog = new TEExamStudentLog(tIeInvigilateWarnInfo.getType().name(), tIeInvigilateWarnInfo.getType().getCode(), tIeInvigilateWarnInfo.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentCacheBean.getId(), recordId);
|
|
|
+ teExamStudentLogService.saveOrUpdate(teExamStudentLog);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -200,12 +203,10 @@ public class WarningServiceImpl implements WarningService {
|
|
|
* @param recordId
|
|
|
*/
|
|
|
public void setPhotoUrls(Map<String, Object> map, String photoUrl, TIeInvigilateWarnInfo tIeInvigilateWarnInfo, ExamStudentCacheBean examStudentCacheBean, Long recordId) {
|
|
|
- List photoUrls = null;
|
|
|
+ List<String> photoUrls = new ArrayList();
|
|
|
if (Objects.nonNull(map.get("photoUrls")) && !Objects.equals(map.get("photoUrls"), "")) {
|
|
|
- photoUrls = Arrays.asList(String.valueOf(map.get("photoUrls")).split(","));
|
|
|
- }
|
|
|
- if (Objects.isNull(photoUrls)) {
|
|
|
- photoUrls = new ArrayList();
|
|
|
+ String[] s = String.valueOf(map.get("photoUrls")).split(",");
|
|
|
+ Collections.addAll(photoUrls, s);
|
|
|
}
|
|
|
photoUrls.add(photoUrl);
|
|
|
JSONObject jsonObject = new JSONObject();
|