| | |
| | | and view_time is null |
| | | </update> |
| | | <select id="digitizationYear" 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_digitization3 |
| | | 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="digitizationMonth" resultType="com.ruoyi.statistical.vo.CountVo"> |
| | | select to_char(alarm_time::DATE, 'dd') as date,count(id) |
| | | from ard_alarm_digitization3 |
| | | where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date |
| | | </select> |
| | | </mapper> |