diff --git a/src/main/resources/mapper/securityManagement/HotHiddenDangerPlanMapper.xml b/src/main/resources/mapper/securityManagement/HotHiddenDangerPlanMapper.xml index 64d4880..b05a70d 100644 --- a/src/main/resources/mapper/securityManagement/HotHiddenDangerPlanMapper.xml +++ b/src/main/resources/mapper/securityManagement/HotHiddenDangerPlanMapper.xml @@ -29,7 +29,7 @@ i.plan_id, SUM(CASE WHEN i.status IN (3, 9) THEN 1 ELSE 0 END) AS completed_count, SUM(CASE WHEN i.status IS NULL OR i.status NOT IN (3, 9) THEN 1 ELSE 0 END) AS pending_count, - SUM(CASE WHEN i.status NOT IN (3, 6, 7, 8, 9, 10) THEN 1 ELSE 0 END) AS pending_audit_count + SUM(CASE WHEN i.status IN (2, 5) THEN 1 ELSE 0 END) AS pending_audit_count FROM hot_hidden_danger_inspection i WHERE i.is_deleted = 0 GROUP BY i.plan_id