소스 검색

完善opc展示

hfxc226 1 년 전
부모
커밋
ace9fe859b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      platform-opc/src/main/java/com/platform/opc/util/OpcDAClient.java

+ 4 - 4
platform-opc/src/main/java/com/platform/opc/util/OpcDAClient.java

@@ -140,7 +140,7 @@ public class OpcDAClient {
      * @return
      */
     public static List<RemoteOpc> addGroupAndItems(List<RemoteOpc> remoteOpcList) {
-        log.info("remoteOpcList: " + remoteOpcList.size());
+        // log.info("remoteOpcList: " + remoteOpcList.size());
         Map<String, List<RemoteOpc>> listMap = remoteOpcList.stream().collect(Collectors.groupingBy(RemoteOpc::getLine));
         OpcDAClient.connect();
         List<RemoteOpc> list = new ArrayList<>();
@@ -161,9 +161,9 @@ public class OpcDAClient {
         Group group = null;
         try {
             if (!CollectionUtils.isEmpty(groupList)) {
-                log.info("groupList: " + groupList.size());
+                // log.info("groupList: " + groupList.size());
                 for (Group checkGroup : groupList) {
-                    log.info("checkGroup: " + checkGroup.getName());
+                    // log.info("checkGroup: " + checkGroup.getName());
                     if (checkGroup.getName().equals(entry.getKey())) {
                         log.info("已存在分组line id: " + entry.getKey());
                         group = checkGroup;
@@ -351,7 +351,7 @@ public class OpcDAClient {
                 result.setResult(new BigDecimal(value));
                 result.setTestInstant(now);
                 result.setTime(timeStr);
-                log.info("id: " + item.getId() + ", value: " + value + ", timestamp: " + itemMap.getTimestamp());
+                // log.info("id: " + item.getId() + ", value: " + value + ", timestamp: " + itemMap.getTimestamp());
                 resultList.add(result);
             }
         } catch (Exception e) {