...
|
...
|
@@ -160,7 +160,10 @@ func (d *TaskDao) CountTaskStageAnomalyNotHrbp(param ListTaskCondition) (int, er |
|
|
and task.company_id =?
|
|
|
and task.deleted_at isnull
|
|
|
and (
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)<floor(extract(epoch from now()))
|
|
|
(
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)>0 and
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)<floor(extract(epoch from now()))
|
|
|
)
|
|
|
or
|
|
|
task.warn_flag = 1
|
|
|
)
|
...
|
...
|
@@ -199,7 +202,10 @@ func (d *TaskDao) CountTaskStageAnomalyByHrbp(param ListTaskCondition) (int, err |
|
|
and task.deleted_at isnull
|
|
|
and t_task_ignore.id isnull
|
|
|
and (
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)<floor(extract(epoch from now()))
|
|
|
(
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)>0 and
|
|
|
cast(COALESCE(task.current_stage ->>'planCompletedAt','0') as int)<floor(extract(epoch from now()))
|
|
|
)
|
|
|
or
|
|
|
task.warn_flag = 1
|
|
|
)`
|
...
|
...
|
|