Commit 13388b0e authored by shangtx's avatar shangtx

feat(年度基准工时): 排除入职前工时

parent 2a2d9a6e
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
pj.name project_name, pj.name project_name,
pj.id project_id pj.id project_id
from zt_user u from zt_user u
left join zt_taskestimate zt on u.account = zt.account left join zt_taskestimate zt on u.account = zt.account and date(zt.date) >= date(u.join)
left join zt_task t on t.id = zt.task left join zt_task t on t.id = zt.task
left join zt_project pj on t.project = pj.id left join zt_project pj on t.project = pj.id
where not exists (select 1 where not exists (select 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment