zhangnaisong
2024-07-08 c8aaafaaf4b6ff674149db115a97e40ead5927bf
ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml
@@ -196,8 +196,13 @@
          and view_time is null
    </update>
    <select id="tubeYear" resultType="com.ruoyi.statistical.vo.CountVo">
        select to_char(create_time::DATE, 'MM') as month,count(id)
        select to_char(create_time::DATE, 'MM') as date,count(id)
        from ard_alarm_tube
        where create_time &gt;= #{start} and  create_time &lt;= #{end}  group by month order by month
        where create_time &gt;= #{start} and  create_time &lt;= #{end}  group by date order by date
    </select>
    <select id="tubeMonth" resultType="com.ruoyi.statistical.vo.CountVo">
        select to_char(create_time::DATE, 'dd') as date,count(id)
        from ard_alarm_tube
        where create_time &gt;= #{start} and  create_time &lt;= #{end}  group by date order by date
    </select>
</mapper>