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());