1. 修改任务中得截至时间,需求方要求提交数据时间延长到第二天8点30分截止
正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -104,11 +104,12 @@ func (rs *NodeTaskService) SendEvaluationNode() error { | @@ -104,11 +104,12 @@ func (rs *NodeTaskService) SendEvaluationNode() error { | ||
| 104 | task.NextSentAt = &nextTime | 104 | task.NextSentAt = &nextTime |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | - // 周期的截至时间=下一个周期的开始时间-1秒 | 107 | + // 周期的截至时间=下一个周期的开始时间-1秒(需求方要求提交数据时间延长到第二天8点30分截止) |
| 108 | if task.NextSentAt == nil { | 108 | if task.NextSentAt == nil { |
| 109 | cycleTimeEnd = maxTime | 109 | cycleTimeEnd = maxTime |
| 110 | } else { | 110 | } else { |
| 111 | - cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second) | 111 | + //cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second) // 周期截至时间=下一个周期起始时间-1秒 |
| 112 | + cycleTimeEnd = task.NextSentAt.Local().Add(8*time.Hour + 30*time.Minute) // 注.延长8.5小时 | ||
| 112 | } | 113 | } |
| 113 | 114 | ||
| 114 | // 格式化周期的起始和截止时间 | 115 | // 格式化周期的起始和截止时间 |
-
请 注册 或 登录 后发表评论