yangys
2024-10-08 ba9557b5edf7f31ab8bce0ae57aaaaefd6459bb4
collect/src/main/java/com/qianwen/mdc/collect/service/IotDBCommonService.java
@@ -32,6 +32,7 @@
      List<String> pathlist;
      try {
         pathlist = iotdbCfg.getSessionPool().showPathsTemplateSetOn(template);
         //logger.info("pathlist"+pathlist);
         return pathlist.contains(path);
      } catch (StatementExecutionException|IoTDBConnectionException e) {
         logger.error("获取模板使用错误",e);
@@ -50,7 +51,7 @@
          try {
             iotdbCfg.getSessionPool().setSchemaTemplate(template, deviceId);
          } catch (Exception e) {
               e.printStackTrace();
             logger.error("获取模板使用错误,template="+template+",deviceId="+deviceId,e);
         }
       }
   }