作者 郑周

1. 格式化优化

... ... @@ -103,12 +103,12 @@ func (rs *NodeTaskService) SendEvaluationNode() error {
if task.NextSentAt == nil {
cycleTimeEnd = maxTime
} else {
cycleTimeEnd = task.NextSentAt.Local()
cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second)
}
// 格式化周期的起始和截止时间
fmCycleStartTime := cycleTimeStart.Format("2006-1-2 15:04:05")
fmCycleTimeEnd := cycleTimeEnd.Format("2006-1-2 15:04:05")
fmCycleStartTime := cycleTimeStart.Format("2006-01-02 15:04:05")
fmCycleTimeEnd := cycleTimeEnd.Format("2006-01-02 15:04:05")
csat := &command.CreateStaffAssessTask{
CompanyId: int(project.CompanyId),
... ...