作者 郑周

1. 最后一个周期提交时间, 延迟到第二天8.30分提交

@@ -106,7 +106,10 @@ func (rs *NodeTaskService) SendEvaluationNode() error { @@ -106,7 +106,10 @@ func (rs *NodeTaskService) SendEvaluationNode() error {
106 106
107 // 周期的截至时间=下一个周期的开始时间-1秒(需求方要求提交数据时间延长到第二天8点30分截止) 107 // 周期的截至时间=下一个周期的开始时间-1秒(需求方要求提交数据时间延长到第二天8点30分截止)
108 if task.NextSentAt == nil { 108 if task.NextSentAt == nil {
109 - cycleTimeEnd = maxTime 109 + //cycleTimeEnd = maxTime
  110 + maxYear, maxMonth, maxDay := maxTime.Date()
  111 + cycleTimeEnd = time.Date(maxYear, maxMonth, maxDay, 0, 0, 0, 0, time.Local)
  112 + cycleTimeEnd = cycleTimeEnd.Add(24*time.Hour + 8*time.Hour + 30*time.Minute) // 注.延长8.5小时
110 } else { 113 } else {
111 //cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second) // 周期截至时间=下一个周期起始时间-1秒 114 //cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second) // 周期截至时间=下一个周期起始时间-1秒
112 cycleTimeEnd = task.NextSentAt.Local().Add(8*time.Hour + 30*time.Minute) // 注.延长8.5小时 115 cycleTimeEnd = task.NextSentAt.Local().Add(8*time.Hour + 30*time.Minute) // 注.延长8.5小时