aijinhui
2023-10-07 2b29a4a26019e3d1692c4b4c76746dba9fac7b22
ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml
@@ -166,4 +166,10 @@
          and alarm_time<=#{alarmTime}
          and view_time is null
    </update>
    <select id="cameraYear" resultType="com.ruoyi.statistical.vo.CountVo">
        select to_char(alarm_time::DATE, 'MM') as month,count(id)
        from ard_alarm_camera
        where alarm_time &gt;= #{start} and  alarm_time &lt;= #{end}  group by month order by month
    </select>
</mapper>