...
|
...
|
@@ -236,6 +236,7 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "请填写里程碑完成时间")
|
|
|
}
|
|
|
t = dayEndTime(t)
|
|
|
if i > 0 {
|
|
|
if lastPlanCompletedAt.After(t) {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "里程碑["+val2.Name+"]完成时间填写错误")
|
...
|
...
|
@@ -261,7 +262,7 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
oldStage.DeletedAt = nil
|
|
|
oldStage.SortBy = i + 1
|
|
|
oldStage.Name = val2.Name
|
|
|
oldStage.PlanCompletedAt = t.Unix()
|
|
|
oldStage.PlanCompleted(t)
|
|
|
//TODO 修改里程碑计划完成时间,特殊处理
|
|
|
}
|
|
|
stageList = append(stageList, newStageList...)
|
...
|
...
|
@@ -827,3 +828,5 @@ func (srv TaskService) ReplyTaskStage(transactionContext application.Transaction |
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
// func (srv TaskService) |
...
|
...
|
|