From 7fd5a980147f7ee9df50b5cea8df7eb13c7c21f9 Mon Sep 17 00:00:00 2001 From: aijinhui <aijinhui> Date: 星期二, 10 十月 2023 10:51:42 +0800 Subject: [PATCH] 抽油机运行状态 --- ard-work/src/main/resources/mapper/alarm/ArdAlarmWallMapper.xml | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmWallMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmWallMapper.xml index a35adc3..99e112e 100644 --- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmWallMapper.xml +++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmWallMapper.xml @@ -162,4 +162,14 @@ and create_time <= #{createTime} and view_time is null </update> + <select id="wallYear" resultType="com.ruoyi.statistical.vo.CountVo"> + select to_char(alarm_time::DATE, 'MM') as date,count(id) + from ard_alarm_wall + where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date + </select> + <select id="wallMonth" resultType="com.ruoyi.statistical.vo.CountVo"> + select to_char(alarm_time::DATE, 'dd') as date,count(id) + from ard_alarm_wall + 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