取消从redis取值

This commit is contained in:
USER-20220102CG\noblelift
2022-10-19 20:58:21 +08:00
parent 088394c493
commit bd0af57962

View File

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