refactor: added clinics counts filter
This commit is contained in:
parent
945e76bc34
commit
7cae614e37
|
|
@ -50,7 +50,7 @@ class ClinicServices:
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(*) as total,
|
COUNT(*) as total,
|
||||||
COUNT(CASE WHEN status = 'ACTIVE' THEN 1 END) as active,
|
COUNT(CASE WHEN status = 'ACTIVE' THEN 1 END) as active,
|
||||||
COUNT(CASE WHEN status = 'REJECTED' THEN 1 END) as rejected
|
COUNT(CASE WHEN status = 'REJECTED' OR status = 'UNDER_REVIEW' OR status = 'PAYMENT_DUE' OR status = 'REQUESTED_DOC' THEN 1 END) as rejected
|
||||||
FROM clinics
|
FROM clinics
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue