|
|
|
@ -45,7 +45,7 @@
|
|
|
|
) then 'ABNORMAL'
|
|
|
|
) then 'ABNORMAL'
|
|
|
|
when nvl(oi.execution_status, 'PENDING') = 'COMPLETED' then 'COMPLETED'
|
|
|
|
when nvl(oi.execution_status, 'PENDING') = 'COMPLETED' then 'COMPLETED'
|
|
|
|
when nvl(oi.execution_status, 'PENDING') = 'RUNNING' then 'RUNNING'
|
|
|
|
when nvl(oi.execution_status, 'PENDING') = 'RUNNING' then 'RUNNING'
|
|
|
|
when oi.end_date is not null and oi.end_date < trunc(sysdate) and nvl(oi.execution_status, 'PENDING') <> 'COMPLETED' then 'OVERTIME'
|
|
|
|
when oi.end_date is not null and oi.end_date < trunc(sysdate) and nvl(oi.execution_status, 'PENDING') != 'COMPLETED' then 'OVERTIME'
|
|
|
|
else 'PENDING'
|
|
|
|
else 'PENDING'
|
|
|
|
end as task_bucket,
|
|
|
|
end as task_bucket,
|
|
|
|
tp.owner_user_id,
|
|
|
|
tp.owner_user_id,
|
|
|
|
|