From bd0af57962d65433afe527cc382d360a68d3755e Mon Sep 17 00:00:00 2001
From: "USER-20220102CG\\noblelift" <546428999@qq.com>
Date: Wed, 19 Oct 2022 20:58:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E4=BB=8Eredis=E5=8F=96?=
 =?UTF-8?q?=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/acs/hd/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java b/acs/hd/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java
index 33ded01..bda5cad 100644
--- a/acs/hd/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java
+++ b/acs/hd/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java
@@ -152,9 +152,9 @@ public class DeviceOpcProtocolRunable implements Runnable {
                             item = (Item) var18.next();
                             ItemState itemState = (ItemState) itemStatus.get(item);
                             value = OpcUtl.getValue(item, itemState);
-//                            his = accessor_value.getValue(item.getId());
-                            RedisUtils redisUtils = SpringContextHolder.getBean(RedisUtils.class);
-                            his=redisUtils.get(item.getId());
+                            his = accessor_value.getValue(item.getId());
+//                            RedisUtils redisUtils = SpringContextHolder.getBean(RedisUtils.class);
+//                            his=redisUtils.get(item.getId());
 
                             if (!ObjectUtil.equal(itemState.getQuality(), QualityTypeValue.OPC_QUALITY_GOOD) && his != null) {
                                 log.warn("opc 值不健康 item: {}, 状态: {}", item.getId(), itemState.getQuality());