zjk
2026-07-31 8665daa7aa863f96d0d8f27c167edae1efc38022
ruoyi-system/src/main/resources/mapper/system/SysDashboardMapper.xml
@@ -17,7 +17,11 @@
    <select id="selectStatusSummary" resultType="SysDashboardStatusSummaryVO">
        select sum(case when status = 'VISITING' then 1 else 0 end) as visitingCount,
               sum(case when status in ('SIGNED_OUT', 'OVERDUE_AUTO_SIGNED_OUT') then 1 else 0 end) as signedOutCount,
               sum(case when status in ('SIGNED_OUT', 'OVERDUE_AUTO_SIGNED_OUT')
                             and sign_time is not null
                             and sign_time &gt;= #{param1}
                             and sign_time &lt; #{param2}
                        then 1 else 0 end) as signedOutCount,
               sum(case when status = 'PENDING_CONFIRM' then 1 else 0 end) as overdueCount
        from t_visitor_record
        where del_flag = '0'