From afc12f9bbd372b55a4539c1fc40b17dbd5949cb1 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期二, 19 八月 2025 13:44:38 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/BasShuttleOptMapper.xml | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/BasShuttleOptMapper.xml b/src/main/resources/mapper/BasShuttleOptMapper.xml
index 99fefa1..b49d0d1 100644
--- a/src/main/resources/mapper/BasShuttleOptMapper.xml
+++ b/src/main/resources/mapper/BasShuttleOptMapper.xml
@@ -22,4 +22,18 @@
</resultMap>
+ <select id="selectRunStatistic" resultType="map">
+ select shuttle_no,count(*) count from asr_bas_shuttle_opt
+ where send_time >= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
+ and send_time < DATEADD(day, DATEDIFF(day, 0, GETDATE())+1, 0)
+ group by shuttle_no
+ </select>
+
+ <select id="selectRunErrorStatistic" resultType="map">
+ select shuttle_no,count(*) count from asr_bas_shuttle_err_log
+ where start_time > DATEADD(day, DATEDIFF(day, 0, GETDATE())-#{time}, 0)
+ and start_time < DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
+ GROUP BY shuttle_no
+ </select>
+
</mapper>
--
Gitblit v1.9.1