首页工单查询接口调整

This commit is contained in:
1378012178@qq.com 2026-04-08 09:00:43 +08:00
parent d0556f9485
commit d3ce25da04
1 changed files with 6 additions and 0 deletions

View File

@ -658,6 +658,12 @@
OR (sub.emp_start_time IS NOT NULL AND sub.emp_end_time IS NULL)
)) tmp ON t.serv_start_time = tmp.serv_start_time
LEFT JOIN nu_config_service_directive dire on t.directive_id = dire.id
where t.nu_id = #{entity.nuId}
AND (
(t.employee_ids IS NOT NULL AND
SUBSTRING_INDEX(t.employee_ids, ',', 1) = #{entity.employeeId})
OR (t.employee_ids IS NULL AND t.employee_id = #{entity.employeeId})
)
ORDER BY t.serv_start_time ASC,
CASE WHEN t.service_attribute = 'ds' THEN 0 ELSE 1 END,
CASE