| | |
| | | |
| | | <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 >= #{param1} |
| | | and sign_time < #{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' |