From 7dfd5f52332212d2f2c111cc11147469a68b7bdb Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期一, 11 三月 2024 17:23:34 +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