切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
858c456afc159aee0722df21606d99e89bb0a3fe
2 个父辈
603df9b9
1444a90d
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
pkg/application/node_task/node_task_service.go
pkg/application/node_task/node_task_service.go
查看文件 @
858c456
...
...
@@ -99,16 +99,16 @@ func (rs *NodeTaskService) SendEvaluationNode() error {
task
.
NextSentAt
=
&
nextTime
}
//
下个周期的起始时间=当前周期的截止时间
//
周期的截至时间=下一个周期的开始时间-1秒
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
),
...
...
请
注册
或
登录
后发表评论