liusuyi
2024-05-06 57d2299a11ba45b0092d39872b5f05a184882bb0
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>