From 06dc46e10bc1b612138113b2444770ba5ba02dd9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-932OMT8\\REN" Date: Tue, 20 May 2025 22:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E5=AD=A6=E7=94=9F=E8=80=83=E8=AF=95=E7=8A=B6=E6=80=81=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= 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 f9add552..f2ecf979 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 @@ -186,7 +186,6 @@ public class MonitorServiceImpl implements MonitorService { info.setRemainingTime(remainingSeconds > 0 ? remainingSeconds : 0); //判分后删除 - stringRedisTemplate.opsForValue().set("userCache:"+stuMonitorPaperVo.getTaskId()+":"+stuMonitorPaperVo.getStuId(), JsonUtils.toJsonString(info)); monitorMapper.updateById(info); return remainingSeconds > 0 ? remainingSeconds : 0; }else { @@ -199,9 +198,12 @@ public class MonitorServiceImpl implements MonitorService { if ("1".equals(educationPaperParam.getIsSession())&&"0".equals(educationPaperParam.getIsTime())){ info.setRemainingTime((long) examTime.toLocalTime().toSecondOfDay()); + stringRedisTemplate.opsForValue().set("userCache:"+stuMonitorPaperVo.getTaskId()+":"+stuMonitorPaperVo.getStuId(), JsonUtils.toJsonString(info)); return (long) examTime.toLocalTime().toSecondOfDay(); + + } return 0L;