...
|
...
|
@@ -80,6 +80,7 @@ type ListTaskStage struct { |
|
|
LevelName string `pg:"level_name"`
|
|
|
Level int `pg:"level"`
|
|
|
Anomaly int `pg:"anomaly"`
|
|
|
WarnFlag int `pg:"warn_flag"`
|
|
|
UpdatedAt time.Time `pg:"updated_at"`
|
|
|
CreatedAt time.Time `pg:"created_at"`
|
|
|
StageId int `pg:"stage_id"`
|
...
|
...
|
@@ -109,6 +110,7 @@ func (d *TaskDao) ListTaskStageNotHrbp(param ListTaskCondition) ([]ListTaskStage |
|
|
task.updated_at ,
|
|
|
task.created_at ,
|
|
|
task."level" ,
|
|
|
task."warn_flag",
|
|
|
task."status" as task_status,
|
|
|
task_stage."id" as stage_id,
|
|
|
task_stage."name" as stage_name,
|
...
|
...
|
@@ -148,7 +150,8 @@ func (d *TaskDao) ListTaskStageNotHrbp(param ListTaskCondition) ([]ListTaskStage |
|
|
t_task_tage_1.real_completed_at,
|
|
|
t_task_tage_1.stage_name,
|
|
|
t_task_tage_1.stage_id,
|
|
|
t_task_tage_1.stage_sort_by
|
|
|
t_task_tage_1.stage_sort_by,
|
|
|
t_task_tage_1."warn_flag"
|
|
|
from t_task_tage_1
|
|
|
where t_task_tage_1.task_id in(
|
|
|
select t_task_page.task_id from t_task_page
|
...
|
...
|
@@ -229,6 +232,7 @@ func (d *TaskDao) ListTaskStageByHrbp(param ListTaskCondition) ([]ListTaskStage, |
|
|
task.level_name ,
|
|
|
task.anomaly ,
|
|
|
task.updated_at ,
|
|
|
task."warn_flag",
|
|
|
task.created_at ,
|
|
|
task."level" ,
|
|
|
task_stage."id" as stage_id,
|
...
|
...
|
@@ -270,6 +274,7 @@ func (d *TaskDao) ListTaskStageByHrbp(param ListTaskCondition) ([]ListTaskStage, |
|
|
t_task_tage_1.real_completed_at,
|
|
|
t_task_tage_1.stage_name,
|
|
|
t_task_tage_1.stage_id,
|
|
|
t_task_tage_1."warn_flag",
|
|
|
t_task_tage_1.stage_sort_by
|
|
|
from t_task_tage_1
|
|
|
where t_task_tage_1.task_id in(
|
...
|
...
|
@@ -305,7 +310,7 @@ func (d *TaskDao) CountTaskStageByHrbp(param ListTaskCondition) (int, error) { |
|
|
|
|
|
withSql := `with
|
|
|
t_task_ignore as (
|
|
|
select task_ignore.task_id,task_ignore.id from task_ignore where task_ignore.user_id =?
|
|
|
select task_ignore.task_id,task_ignore.id from task_ignore where task_ignore.user_id =?
|
|
|
)select count(*) from task
|
|
|
left join t_task_ignore on t_task_ignore.task_id=task.id
|
|
|
where 1=1 `
|
...
|
...
|
|