|
@@ -350,7 +350,6 @@ public class TIeInvigilateController {
|
|
if (Objects.isNull(mapParameter.get("type")) || Objects.equals(mapParameter.get("type"), "")) {
|
|
if (Objects.isNull(mapParameter.get("type")) || Objects.equals(mapParameter.get("type"), "")) {
|
|
throw new BusinessException(ExceptionResultEnum.BREACH_TYPE_IS_NULL);
|
|
throw new BusinessException(ExceptionResultEnum.BREACH_TYPE_IS_NULL);
|
|
}
|
|
}
|
|
- BreachTypeEnum type = BreachTypeEnum.valueOf(String.valueOf(mapParameter.get("type")));
|
|
|
|
if (Objects.isNull(mapParameter.get("description")) || Objects.equals(mapParameter.get("description"), "")) {
|
|
if (Objects.isNull(mapParameter.get("description")) || Objects.equals(mapParameter.get("description"), "")) {
|
|
throw new BusinessException(ExceptionResultEnum.BREACH_DESC_IS_NULL);
|
|
throw new BusinessException(ExceptionResultEnum.BREACH_DESC_IS_NULL);
|
|
}
|
|
}
|
|
@@ -362,6 +361,7 @@ public class TIeInvigilateController {
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
List<TEExamBreachLog> teExamBreachLogList = new ArrayList<>();
|
|
List<TEExamBreachLog> teExamBreachLogList = new ArrayList<>();
|
|
if (status == 0) {//新建违纪
|
|
if (status == 0) {//新建违纪
|
|
|
|
+ BreachTypeEnum type = BreachTypeEnum.valueOf(String.valueOf(mapParameter.get("type")));
|
|
List<TEExamBreachLog> finalTeExamBreachLogList = teExamBreachLogList;
|
|
List<TEExamBreachLog> finalTeExamBreachLogList = teExamBreachLogList;
|
|
for (int i = 0; i < recordIdList.size(); i++) {
|
|
for (int i = 0; i < recordIdList.size(); i++) {
|
|
Long l = Long.parseLong(String.valueOf(recordIdList.get(i)));
|
|
Long l = Long.parseLong(String.valueOf(recordIdList.get(i)));
|
|
@@ -379,16 +379,17 @@ public class TIeInvigilateController {
|
|
examStudentId = ExamRecordCacheUtil.getExamStudentId(l);
|
|
examStudentId = ExamRecordCacheUtil.getExamStudentId(l);
|
|
examActivityId = ExamRecordCacheUtil.getExamActivityId(l);
|
|
examActivityId = ExamRecordCacheUtil.getExamActivityId(l);
|
|
}
|
|
}
|
|
- TEExamBreachLog teExamBreachLog = new TEExamBreachLog(examId, examActivityId, l, examStudentId, type, description, status);
|
|
|
|
|
|
+ TEExamBreachLog teExamBreachLog = new TEExamBreachLog(examId, examActivityId, l, examStudentId, type.name(), description, status);
|
|
teExamBreachLog.setCreateId(tbUser.getId());
|
|
teExamBreachLog.setCreateId(tbUser.getId());
|
|
finalTeExamBreachLogList.add(teExamBreachLog);
|
|
finalTeExamBreachLogList.add(teExamBreachLog);
|
|
}
|
|
}
|
|
} else {//撤销违纪
|
|
} else {//撤销违纪
|
|
|
|
+ BreachCancelTypeEnum type = BreachCancelTypeEnum.valueOf(String.valueOf(mapParameter.get("type")));
|
|
QueryWrapper<TEExamBreachLog> teExamBreachLogQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<TEExamBreachLog> teExamBreachLogQueryWrapper = new QueryWrapper<>();
|
|
teExamBreachLogQueryWrapper.lambda().in(TEExamBreachLog::getExamRecordId, recordIdList);
|
|
teExamBreachLogQueryWrapper.lambda().in(TEExamBreachLog::getExamRecordId, recordIdList);
|
|
teExamBreachLogList = teExamBreachLogService.list(teExamBreachLogQueryWrapper);
|
|
teExamBreachLogList = teExamBreachLogService.list(teExamBreachLogQueryWrapper);
|
|
teExamBreachLogList.forEach(s -> {
|
|
teExamBreachLogList.forEach(s -> {
|
|
- s.setType(type);
|
|
|
|
|
|
+ s.setType(type.name());
|
|
s.setDescription(description);
|
|
s.setDescription(description);
|
|
s.setStatus(status);
|
|
s.setStatus(status);
|
|
s.setUpdateId(tbUser.getId());
|
|
s.setUpdateId(tbUser.getId());
|