From 62b1f39e60f64ec4e05b21d11af3e36f5891a91a Mon Sep 17 00:00:00 2001
From: zc <zc@123>
Date: 星期二, 29 四月 2025 20:10:27 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/BasLiftOptMapper.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/BasLiftOptMapper.xml b/src/main/resources/mapper/BasLiftOptMapper.xml
index 5436fd3..763bf2c 100644
--- a/src/main/resources/mapper/BasLiftOptMapper.xml
+++ b/src/main/resources/mapper/BasLiftOptMapper.xml
@@ -20,7 +20,22 @@
<select id="selectByDeviceWrk" resultMap="BaseResultMap">
select top 1 * from asr_bas_lift_opt
where device_wrk = #{deviceWrk}
+ and lift_no = #{liftNo}
order by send_time desc
</select>
+ <select id="selectRunStatistic" resultType="map">
+ select lift_no,count(*) count from asr_bas_lift_opt
+ where send_time > DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)
+ and send_time < DATEADD(day, DATEDIFF(day, 0, GETDATE())+1, 0)
+ group by lift_no
+ </select>
+
+ <select id="selectRunErrorStatistic" resultType="map">
+ select lift_no,count(*) count from asr_bas_lift_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 lift_no
+ </select>
+
</mapper>
--
Gitblit v1.9.1