正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -191,7 +191,7 @@ func (rs *EvaluationProjectService) UpdateTemplate(in *command.UpdateProjectTemp | @@ -191,7 +191,7 @@ func (rs *EvaluationProjectService) UpdateTemplate(in *command.UpdateProjectTemp | ||
| 191 | endLocal := task.TimeEnd.Local() | 191 | endLocal := task.TimeEnd.Local() |
| 192 | 192 | ||
| 193 | // 在当前时间之前,则计算下一个周期时间 | 193 | // 在当前时间之前,则计算下一个周期时间 |
| 194 | - if startLocal.Before(now) { | 194 | + if startLocal.Before(nowO) { |
| 195 | nextTime := utils.NextTime(nowO, startLocal, task.KpiCycle) | 195 | nextTime := utils.NextTime(nowO, startLocal, task.KpiCycle) |
| 196 | task.NextSentAt = &nextTime | 196 | task.NextSentAt = &nextTime |
| 197 | } else { | 197 | } else { |
| @@ -486,7 +486,7 @@ func (rs *EvaluationProjectService) Activate(in *command.ActivateProjectCommand) | @@ -486,7 +486,7 @@ func (rs *EvaluationProjectService) Activate(in *command.ActivateProjectCommand) | ||
| 486 | endLocal := task.TimeEnd.Local() | 486 | endLocal := task.TimeEnd.Local() |
| 487 | 487 | ||
| 488 | // 在当前时间之前,则计算下一个周期时间 | 488 | // 在当前时间之前,则计算下一个周期时间 |
| 489 | - if startLocal.Before(now) { | 489 | + if startLocal.Before(nowO) { |
| 490 | nextTime := utils.NextTime(nowO, startLocal, node.KpiCycle) | 490 | nextTime := utils.NextTime(nowO, startLocal, node.KpiCycle) |
| 491 | task.NextSentAt = &nextTime | 491 | task.NextSentAt = &nextTime |
| 492 | } else { | 492 | } else { |
-
请 注册 或 登录 后发表评论