From 386e107222d673a1ea2781a03a7b1b1d28212f58 Mon Sep 17 00:00:00 2001
From: yyt <306727702@qq.com>
Date: 星期六, 17 二月 2024 16:43:10 +0800
Subject: [PATCH] 更新OPCUA

---
 jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java b/jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java
index 8c46a12..fe4d082 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/da/passingStationCollection/service/impl/DaPassingStationCollectionServiceImpl.java
@@ -75,6 +75,14 @@
     {
 
         List<DaPassingStationVO> result = new ArrayList<>();
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+
+        LocalDateTime startTime = LocalDate.now().atStartOfDay();
+        LocalDateTime endTime = LocalDate.now().plusDays(1).atStartOfDay();
+        String s1 = startTime.format(formatter);
+        String s2 = endTime.format(formatter);
+        daPassingStationCollection.setStartTime(s1);
+        daPassingStationCollection.setEndTime(s2);
         List<DaPassingStationCollection> list = daPassingStationCollectionMapper.selectDaPassingStationCollectionList(daPassingStationCollection);
         //绛涢櫎鑺傛媿涓虹┖鐨勬暟鎹�
         list = list.stream().filter(x -> StringUtils.isNotEmpty(x.getBeatTime())).collect(Collectors.toList());
@@ -214,4 +222,20 @@
             rmRepairRecordMapper.insertRmRepairRecord(rmRepairRecord);
         }
     }
+    @Override
+    public String SelectSN(String SNcode){
+        return "1";
+
+//        --璁㈠崟鎺掍骇
+//        select * from bs_order_scheduling where engine_no='2V91Y-F RA182118'
+//
+//        --宸ヨ壓璺嚎瀛愯〃淇℃伅
+//        select * from bs_technology_route_child_info where route_code='H_191S'
+//
+//        --杩斾慨鏁版嵁
+//        select * from rm_repair_record where box_code='2V91Y-F RA182118'
+//
+//        --杩囩珯閲囬泦
+//        select * from da_passing_station_collection --where sfc_code='2V91Y-F RA182118'
+    }
 }

--
Gitblit v1.9.3