From 02ccef4f01a091e20bd944a7bf243bfc75e9b7c3 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期二, 26 十二月 2023 14:45:08 +0800
Subject: [PATCH] 融云
---
ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
index b70d798..5bcf387 100644
--- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
@@ -171,8 +171,13 @@
</update>
<select id="accessYear" resultType="com.ruoyi.statistical.vo.CountVo">
- select to_char(alarm_time::DATE, 'MM') as month,count(id)
+ select to_char(alarm_time::DATE, 'MM') as date,count(id)
from ard_alarm_access
- where alarm_time >= #{start} and alarm_time <= #{end} group by month order by month
+ where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date
+ </select>
+ <select id="accessMonth" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(alarm_time::DATE, 'dd') as date,count(id)
+ from ard_alarm_access
+ where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3