...
|
...
|
@@ -312,12 +312,6 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
// for _, val := range stageList {
|
|
|
// if val.RealCompletedAt == 0 {
|
|
|
// taskData.CurrentStage = *val
|
|
|
// break
|
|
|
// }
|
|
|
// }
|
|
|
taskData.SetCurrentStage(stageList)
|
|
|
err = taskRepo.Save(taskData)
|
|
|
if err != nil {
|
...
|
...
|
@@ -330,7 +324,7 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
for _, val := range markStage {
|
|
|
for _, val2 := range taskData.RelatedUser {
|
|
|
t1 := time.Unix(val.PlanCompletedAt, 0).Format("2006-01-02")
|
|
|
s := fmt.Sprintf("【%s 任务里程碑 %s 完成时间变更为 %s,请知晓】", taskData.Alias, val.Name, t1)
|
|
|
s := fmt.Sprintf("【%s 任务里程碑 %s 计划完成时间变更为 %s,请知晓】", taskData.Alias, val.Name, t1)
|
|
|
payload := map[string]string{
|
|
|
"id": strconv.Itoa(val.Id),
|
|
|
"taskName": taskData.Name,
|
...
|
...
|
|