...
|
...
|
@@ -470,7 +470,7 @@ func (srv TaskService) GetTaskInfo(param *command.GetTaskCommand) (*adapter.Task |
|
|
ParentId: leaderData.ParentId,
|
|
|
},
|
|
|
Status: int(taskData.Status),
|
|
|
StatusDescription: taskData.StatusDescription(),
|
|
|
StatusDescription: taskData.Status.Named(),
|
|
|
// Level: taskData.Level,
|
|
|
LevelName: taskData.LevelName,
|
|
|
SortBy: int(taskData.SortBy),
|
...
|
...
|
@@ -655,7 +655,7 @@ func (srv TaskService) ListTask(param *command.ListTaskCommand) (map[string]inte |
|
|
Alias: val.Alias,
|
|
|
Leader: val.Leader.Name,
|
|
|
Status: int(val.Status),
|
|
|
Level: val.Level,
|
|
|
SortBy: int(val.SortBy),
|
|
|
LevelName: val.LevelName,
|
|
|
Anomaly: val.Anomaly,
|
|
|
WarnFlag: int(val.WarnFlag),
|
...
|
...
|
@@ -1069,7 +1069,7 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
Alias: val.Alias,
|
|
|
Leader: val.LeaderName,
|
|
|
Status: val.Status,
|
|
|
Level: val.Level,
|
|
|
SortBy: val.SortBy,
|
|
|
LevelName: val.LevelName,
|
|
|
UpdatedAt: val.UpdatedAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
Anomaly: val.Anomaly,
|
...
|
...
|
@@ -1135,6 +1135,7 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
tk.StageE = stage
|
|
|
}
|
|
|
}
|
|
|
tk.GenStatusDescript()
|
|
|
taskResult = append(taskResult, &tk)
|
|
|
}
|
|
|
result := tool_funs.SimpleWrapGridMap(int64(taskCount), taskResult)
|
...
|
...
|
@@ -1216,7 +1217,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s |
|
|
Alias: val.Alias,
|
|
|
Leader: val.LeaderName,
|
|
|
Status: val.Status,
|
|
|
Level: val.Level,
|
|
|
SortBy: val.SortBy,
|
|
|
LevelName: val.LevelName,
|
|
|
UpdatedAt: val.UpdatedAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
Anomaly: val.Anomaly,
|
...
|
...
|
@@ -1228,7 +1229,6 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s |
|
|
SortBy: val.LastStage.SortBy,
|
|
|
PlanCompletedAt: time.Unix(int64(val.LastStage.PlanCompletedAt), 0).Local().Format("2006-01-02"),
|
|
|
RealCompletedAt: "",
|
|
|
IsRef: false,
|
|
|
},
|
|
|
CurrentStage: adapter.TaskStage{
|
|
|
Id: val.CurrentStage.Id,
|
...
|
...
|
@@ -1237,7 +1237,6 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s |
|
|
SortBy: val.CurrentStage.SortBy,
|
|
|
PlanCompletedAt: time.Unix(int64(val.CurrentStage.PlanCompletedAt), 0).Local().Format("2006-01-02"),
|
|
|
RealCompletedAt: "",
|
|
|
IsRef: false,
|
|
|
},
|
|
|
}
|
|
|
if val.LastStage.RealCompletedAt > 0 {
|
...
|
...
|
@@ -1283,6 +1282,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s |
|
|
tk.StageE = stage
|
|
|
}
|
|
|
}
|
|
|
tk.GenStatusDescript()
|
|
|
taskResult = append(taskResult, &tk)
|
|
|
}
|
|
|
result := tool_funs.SimpleWrapGridMap(int64(taskCount), taskResult)
|
...
|
...
|
@@ -1388,7 +1388,7 @@ func (srv *TaskService) ListTaskIgnore(param *command.SearchTaskCommand) (result |
|
|
Alias: val.Alias,
|
|
|
Leader: val.LeaderName,
|
|
|
Status: val.Status,
|
|
|
Level: val.Level,
|
|
|
SortBy: val.SortBy,
|
|
|
LevelName: val.LevelName,
|
|
|
UpdatedAt: val.UpdatedAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
Anomaly: val.Anomaly,
|
...
|
...
|
@@ -1400,7 +1400,6 @@ func (srv *TaskService) ListTaskIgnore(param *command.SearchTaskCommand) (result |
|
|
SortBy: val.LastStage.SortBy,
|
|
|
PlanCompletedAt: time.Unix(int64(val.LastStage.PlanCompletedAt), 0).Local().Format("2006-01-02"),
|
|
|
RealCompletedAt: "",
|
|
|
IsRef: false,
|
|
|
},
|
|
|
CurrentStage: adapter.TaskStage{
|
|
|
Id: val.CurrentStage.Id,
|
...
|
...
|
@@ -1409,7 +1408,6 @@ func (srv *TaskService) ListTaskIgnore(param *command.SearchTaskCommand) (result |
|
|
SortBy: val.CurrentStage.SortBy,
|
|
|
PlanCompletedAt: time.Unix(int64(val.CurrentStage.PlanCompletedAt), 0).Local().Format("2006-01-02"),
|
|
|
RealCompletedAt: "",
|
|
|
IsRef: false,
|
|
|
},
|
|
|
}
|
|
|
if val.LastStage.RealCompletedAt > 0 {
|
...
|
...
|
@@ -1455,6 +1453,7 @@ func (srv *TaskService) ListTaskIgnore(param *command.SearchTaskCommand) (result |
|
|
tk.StageE = stage
|
|
|
}
|
|
|
}
|
|
|
tk.GenStatusDescript()
|
|
|
taskResult = append(taskResult, &tk)
|
|
|
}
|
|
|
|
...
|
...
|
|