作者 tangxvhui

更新endTime 时间设置

... ... @@ -299,7 +299,12 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string]
taskData.SetCurrentStage(stageList)
taskData.SetSortBy(param.SortBy)
//处理endTime
taskData.EndTime = dayEndTime(time.Unix(param.EndTime, 10)).Unix()
if param.EndTime == 0 {
taskData.EndTime = 0
} else {
taskData.EndTime = dayEndTime(time.Unix(param.EndTime, 10)).Unix()
}
taskData.UseEndTime = param.UseEndtime
err = taskRepo.Save(taskData)
if err != nil {
... ...