From 212c28d80de5715c8be5ce7c986899fbcf9deaca Mon Sep 17 00:00:00 2001 From: "YOHO\\20373" <2037305722@qq.com> Date: Thu, 26 Jun 2025 13:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E8=80=83=E8=AF=95=EF=BC=8C=E6=9C=AA=E5=88=86=E9=85=8D?= =?UTF-8?q?=E8=80=83=E5=9C=BA=E4=B8=AD=E6=96=87=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pp/module/exam/service/monitor/MonitorServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/monitor/MonitorServiceImpl.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/monitor/MonitorServiceImpl.java index caeb1424..1aa99513 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/monitor/MonitorServiceImpl.java +++ b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/monitor/MonitorServiceImpl.java @@ -262,7 +262,9 @@ public class MonitorServiceImpl implements MonitorService { EducationPaperPerson educationPaperPerson = educationPaperPersonMapper.selectByTaskIdAndPersonId(stuMonitorPaperVo.getTaskId(), stuMonitorPaperVo.getStuId()); EducationPaperSession educationPaperSession = educationPaperSessionMapper.selectEducationPaperSessionBySessionId(educationPaperPerson.getSessionId()); - + if (educationPaperSession == null) { + throw new MonitorSpecialtyException("未分配考场,请练习教师!"); + } //结束时间 Date endTime = educationPaperSession.getEndTime(); //开始时间