yantian yue
2023-10-20 6b317a19dd1c584538f3810fe66587a1aa86dbb4
OPCUA更新
已修改1个文件
4 ■■■■ 文件已修改
guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/client/ClientHandler.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/client/ClientHandler.java
@@ -186,10 +186,10 @@
            OpcuaConfParam opcuaConfParam=new OpcuaConfParam();
            opcuaConfParam.setSubscribe(1);
            b=opcuaConfController.mylist(opcuaConfParam);
            log.info("数据库访问代码执行时间:" + (System.currentTimeMillis() - sTime) + "毫秒");
        }
        log.info("数据库访问代码执行时间:" + (System.currentTimeMillis() - sTime) + "毫秒");
        String str1 = id.getIdentifier().toString()+":"+value.getValue().toString();
        //使用Stream API在List<T>中查找元素
        OpcuaConfResult opcuaConfResult = b.stream()
                .filter(customer ->id.getIdentifier().toString().equals(customer.getNode()))
                .findAny()