...
|
...
|
@@ -298,7 +298,8 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
}
|
|
|
taskData.SetCurrentStage(stageList)
|
|
|
taskData.SetSortBy(param.SortBy)
|
|
|
taskData.EndTime = param.EndTime
|
|
|
//处理endTime
|
|
|
taskData.EndTime = dayEndTime(time.Unix(param.EndTime, 10)).Unix()
|
|
|
taskData.UseEndTime = param.UseEndtime
|
|
|
err = taskRepo.Save(taskData)
|
|
|
if err != nil {
|
...
|
...
|
@@ -470,11 +471,14 @@ func (srv TaskService) GetTaskInfo(param *command.GetTaskCommand) (*adapter.Task |
|
|
},
|
|
|
Status: int(taskData.Status),
|
|
|
StatusDescription: taskData.StatusDescription(),
|
|
|
Level: taskData.Level,
|
|
|
LevelName: taskData.LevelName,
|
|
|
RelatedUserId: []string{},
|
|
|
RelatedUser: []adapter.UserData{},
|
|
|
StageList: []adapter.TaskStage{},
|
|
|
// Level: taskData.Level,
|
|
|
LevelName: taskData.LevelName,
|
|
|
SortBy: int(taskData.SortBy),
|
|
|
EndTime: taskData.EndTime,
|
|
|
UseEndtime: taskData.UseEndTime,
|
|
|
RelatedUserId: []string{},
|
|
|
RelatedUser: []adapter.UserData{},
|
|
|
StageList: []adapter.TaskStage{},
|
|
|
}
|
|
|
for _, val := range relatedUserList {
|
|
|
idStr := strconv.Itoa(int(val.Id))
|
...
|
...
|
|