yantian yue
2023-10-18 69fbaaa1a5fd16b05953e750ea7fcc3e18e3a27c
guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/client/ClientHandler.java
@@ -56,7 +56,7 @@
   @Autowired
   private OpcuaConfController opcuaConfController;
   List<OpcuaConfResult> a = null;
   /**
    * 
@@ -162,11 +162,12 @@
    */
   public void handle(NodeId id, Variant value){
      long startTime = System.currentTimeMillis();
      OpcuaConfParam opcuaConfParam=new OpcuaConfParam();
      opcuaConfParam.setNode(id.getIdentifier().toString());
      if(a == null || a.size() == 0) {
         a=opcuaConfController.mylist(opcuaConfParam);
      }
      List<OpcuaConfResult> a=opcuaConfController.mylist(opcuaConfParam);
      String str1 = id.getIdentifier().toString()+":"+value.getValue().toString();
      try {
         Class<?> clazz = Class.forName(a.get(0).getRModule());
@@ -177,6 +178,7 @@
             InvocationTargetException e) {
         e.printStackTrace();
      }
      log.info("代码执行时间:" + (System.currentTimeMillis() - startTime) + "毫秒");
   }
   /**