ard-work/src/main/resources/mapper/alarm/ArdAlarmExternalMapper.xml
@@ -183,4 +183,10 @@ and alarm_time<=#{alarmTime} and view_time is null </update> <select id="externalYear" resultType="com.ruoyi.statistical.vo.CountVo"> select to_char(alarm_time::DATE, 'MM') as month,count(id) from ard_alarm_external where alarm_time >= #{start} and alarm_time <= #{end} group by month order by month </select> </mapper>