From 1100a88fb4ddf156efc5a7695f91caae0859df94 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期一, 29 一月 2024 10:36:17 +0800
Subject: [PATCH] pc端查看三一车辆位置申请提交
---
ard-work/src/main/resources/mapper/alarm/ArdAlarmStealelecMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmStealelecMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmStealelecMapper.xml
index 36f94cf..19a7e29 100644
--- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmStealelecMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmStealelecMapper.xml
@@ -128,4 +128,16 @@
values (#{id}, #{name},#{describe},#{catalogText},#{description}, #{startTime}, #{endTime},
#{viewTime},#{longitude},#{latitude},#{altitude},#{createBy},#{createTime},#{userId},#{deptId})
</insert>
+
+ <select id="stealelecYear" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(start_time::DATE, 'MM') as date,count(id)
+ from ard_alarm_stealelec
+ where start_time >= #{start} and start_time <= #{end} group by date order by date
+ </select>
+
+ <select id="stealelecMonth" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(start_time::DATE, 'dd') as date,count(id)
+ from ard_alarm_stealelec
+ where start_time >= #{start} and start_time <= #{end} group by date order by date
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3