guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/client/ClientHandler.java | ●●●●● 补丁 | 查看 | 原始文档 | 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) + "毫秒"); } 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()