From 5bf2b51ec743cd422a0eb3277b9c93a08c700315 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 10 二月 2025 08:46:30 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/BasShuttleOptMapper.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/BasShuttleOptMapper.xml b/src/main/resources/mapper/BasShuttleOptMapper.xml
index dd0694a..b49d0d1 100644
--- a/src/main/resources/mapper/BasShuttleOptMapper.xml
+++ b/src/main/resources/mapper/BasShuttleOptMapper.xml
@@ -15,7 +15,25 @@
         <result column="update_by" property="updateBy" />
         <result column="memo" property="memo" />
         <result column="command" property="command" />
+        <result column="system_status" property="systemStatus" />
+        <result column="send" property="send" />
+        <result column="response" property="response" />
+        <result column="device_wrk" property="deviceWrk" />
 
     </resultMap>
 
+    <select id="selectRunStatistic" resultType="map">
+        select shuttle_no,count(*) count from asr_bas_shuttle_opt
+        where send_time &gt;= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
+        and send_time &lt; 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 &gt; DATEADD(day, DATEDIFF(day, 0, GETDATE())-#{time}, 0)
+        and start_time &lt; DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
+        GROUP BY shuttle_no
+    </select>
+
 </mapper>

--
Gitblit v1.9.1