...
|
...
|
@@ -319,6 +319,7 @@ func (d *TaskDao) CountTaskStageAnomalyNotHrbp(param ListTaskCondition) (int, er |
|
|
join t_task_1 on task.id =t_task_1.id
|
|
|
where 1=1
|
|
|
and task.company_id =?
|
|
|
and task.deleted_at isnull
|
|
|
and (
|
|
|
cast(COALESCE(task.current_stage ->>'plan_completed_at','0') as int)<floor(extract(epoch from now()))
|
|
|
or
|
...
|
...
|
@@ -352,6 +353,7 @@ func (d *TaskDao) CountTaskStageAnomalyByHrbp(param ListTaskCondition) (int, err |
|
|
left join t_task_ignore on t_task_ignore.task_id=task.id
|
|
|
where 1=1
|
|
|
and task.company_id =?
|
|
|
and task.deleted_at isnull
|
|
|
and t_task_ignore.id isnull
|
|
|
and (
|
|
|
cast(COALESCE(task.current_stage ->>'plan_completed_at','0') as int)<floor(extract(epoch from now()))
|
...
|
...
|
@@ -657,6 +659,7 @@ func (d *TaskDao) ListTaskByHrbpV2(param ListTaskCondition) ([]ListTask, error) |
|
|
from task
|
|
|
left join t_task_ignore on t_task_ignore.task_id=task.id
|
|
|
where 1=1 and t_task_ignore.id isnull and task.company_id=?
|
|
|
and task.deleted_at isnull
|
|
|
%s
|
|
|
),
|
|
|
t_task_1 as (
|
...
|
...
|
@@ -727,7 +730,7 @@ func (d *TaskDao) ListTaskNotHrbpV2(param ListTaskCondition) ([]ListTask, error) |
|
|
task.created_at
|
|
|
from task
|
|
|
join t_task_1 on t_task_1.id=task.id
|
|
|
where 1=1 and task.company_id=?
|
|
|
where 1=1 and task.company_id=? and task.deleted_at isnull
|
|
|
%s
|
|
|
),
|
|
|
tt_task_1 as (
|
...
|
...
|
|