From 9816ae78fbee4528c7b66b4b92d13bec5cbb83c2 Mon Sep 17 00:00:00 2001 From: wenjy Date: Mon, 27 Feb 2023 16:29:19 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E4=BC=A0=E6=84=9F=E5=99=A8?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/iot/DeviceMonitorController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/DeviceMonitorController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/DeviceMonitorController.java index 89fc763..b1dc0b2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/DeviceMonitorController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/DeviceMonitorController.java @@ -208,7 +208,7 @@ public class DeviceMonitorController { baseSensorInfoDtos.forEach(y -> { Map info = new HashMap<>(); - Object jrm = redisTemplate.opsForHash().get(y.getSensorType(), y.getSensorId()); + Object jrm = redisTemplate.opsForHash().get(y.getSensorType().trim(), y.getSensorId().trim()); if (jrm != null) { JSONObject jsonObject = JSON.parseObject(jrm.toString());