change - 传感器编号去除多余空格

main
wenjy 2 years ago
parent c4613a7f91
commit 9816ae78fb

@ -208,7 +208,7 @@ public class DeviceMonitorController {
baseSensorInfoDtos.forEach(y -> {
Map<String, Object> 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());

Loading…
Cancel
Save