...
|
...
|
@@ -600,6 +600,7 @@ type TaskData4 struct { |
|
|
TaskAlias string `pg:"task_alias"`
|
|
|
LeaderName string `pg:"leader_name"`
|
|
|
LeaderId int `pg:"leader_id"`
|
|
|
RelatedUser []int `pg:"related_user,type:jsonb"`
|
|
|
}
|
|
|
|
|
|
// TaskStageAnomalyAll 获取所有里程碑异常的任务,
|
...
|
...
|
@@ -609,7 +610,8 @@ func (d TaskDao) TaskStageAnomalyAll() ([]TaskData4, error) { |
|
|
task."name" as task_name ,
|
|
|
task.alias as task_alias,
|
|
|
task.leader ->>'id' as leader_id,
|
|
|
task.leader ->>'name' as leader_name
|
|
|
task.leader ->>'name' as leader_name,
|
|
|
task.related_user
|
|
|
from task where 1=1
|
|
|
and task.deleted_at isnull
|
|
|
and (
|
...
|
...
|
@@ -629,6 +631,7 @@ type TaskData5 struct { |
|
|
TaskAlias string `pg:"task_alias"`
|
|
|
LeaderName string `pg:"leader_name"`
|
|
|
LeaderId int `pg:"leader_id"`
|
|
|
RelatedUser []int `pg:"related_user,type:jsonb"`
|
|
|
Anomaly int `pg:"anomaly"`
|
|
|
}
|
|
|
|
...
|
...
|
@@ -640,7 +643,8 @@ func (d TaskDao) TaskRecordAnomalyAll() ([]TaskData5, error) { |
|
|
task.alias as task_alias,
|
|
|
task.anomaly,
|
|
|
task.leader ->>'id' as leader_id,
|
|
|
task.leader ->>'name' as leader_name
|
|
|
task.leader ->>'name' as leader_name,
|
|
|
task.related_user
|
|
|
from task where 1=1
|
|
|
and task.deleted_at isnull
|
|
|
and task.anomaly>0 `
|
...
|
...
|
|