取消从redis取值
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user