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