From bb63e7464d30f984b97856496639c9ffcfadc6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E5=B1=95=E8=88=AA?= <2426745133@qq.com> Date: Tue, 16 Dec 2025 18:49:19 +0800 Subject: [PATCH] =?UTF-8?q?12-16-=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F-=E4=BF=AE=E5=A4=8D=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E7=89=88-=E4=BF=AE=E5=A4=8DtimeType=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../websocket/service/BigScreenWebSocketServer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/websocket/websocket/service/BigScreenWebSocketServer.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/websocket/websocket/service/BigScreenWebSocketServer.java index caf8dd18..b9acd761 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/websocket/websocket/service/BigScreenWebSocketServer.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/websocket/websocket/service/BigScreenWebSocketServer.java @@ -15,7 +15,6 @@ import org.dromara.common.core.utils.SpringUtils; import org.dromara.materials.domain.vo.materials.MatMaterialsUseDetailVo; import org.dromara.materials.service.IMatMaterialsService; import org.dromara.project.service.impl.BusAttendanceServiceImpl; -import org.dromara.system.service.impl.SysUserServiceImpl; import org.springframework.stereotype.Component; import java.io.IOException; @@ -96,10 +95,9 @@ public class BigScreenWebSocketServer { case 1: break; case 2: - Long timeType; - timeType = Long.parseLong(params.get("timeType").getFirst()); + Long timeType = Long.parseLong(params.get("timeType").getFirst()); //判断参数 - if (timeType == null || (timeType != 1L && timeType != 2L && timeType != 3L)){ + if (timeType != 1L && timeType != 2L && timeType != 3L){ throw new RuntimeException("时间类型参数错误"); } //先获取左边坐标得到map