Browse Source

取消从redis取值

master
汪菘 2 years ago
parent
commit
bd0af57962
  1. 6
      acs/hd/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java

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

Loading…
Cancel
Save