作者 tangxvhui

更新文案

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