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/ArdAlarmApponekeyMapper.xml | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmApponekeyMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmApponekeyMapper.xml
index c047dc5..4381a01 100644
--- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmApponekeyMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmApponekeyMapper.xml
@@ -22,7 +22,13 @@
<select id="selectArdAlarmApponekeyList" parameterType="ArdAlarmApponekey" resultMap="ArdAlarmApponekeyResult">
<include refid="selectArdAlarmApponekeyVo"/>
- <where>
+ <where>
+ <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
+ AND create_time >= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')
+ </if>
+ <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� -->
+ AND create_time <= to_timestamp(#{params.endTime},'yyyy-MM-DD HH24:MI:ss')
+ </if>
</where>
order by create_time desc
</select>
@@ -122,4 +128,15 @@
and create_time <= #{createTime}
and view_time is null
</update>
+
+ <select id="apponekeyYear" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(create_time::DATE, 'MM') as date,count(id)
+ from ard_alarm_apponekey
+ where create_time >= #{start} and create_time <= #{end} group by date order by date
+ </select>
+ <select id="apponekeyMonth" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(create_time::DATE, 'dd') as date,count(id)
+ from ard_alarm_apponekey
+ where create_time >= #{start} and create_time <= #{end} group by date order by date
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3