This commit is contained in:
2025-06-26 18:34:54 +08:00
parent c9f7131f04
commit d0b280070e
2 changed files with 63 additions and 18 deletions

View File

@@ -309,7 +309,7 @@
SELECT
COALESCE(SUM(CASE
WHEN (day_length > 0 OR hour > 0)
OR project_id = 0
OR project_id IN (0, 1)
THEN 1 ELSE 0 END), 0) AS work_days
FROM sys_oa_attendance oas
WHERE oas.user_id = #{userId}