zhangnaisong
2024-05-29 1f71a273c29432665a93507211e9168e51ac4d3f
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>