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