切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Your Name
2 years ago
提交
63994e41cb1668a24a05741da11310fc28df22e1
1 个父辈
3af57fde
master
...
dev-pushdata
dev-tangxvhui
dev-zhengzhou
test
v1.3.2-fix
v1.4.0
v2.2.0-fix
20230410
20230403
20230331
20230324
20230315
20230203
20230112
20221208
20221205
v2.2.0
v2.0.0
v1.3.2
v1.3.2-fix
v1.3.1
v1.3.0
v1.2.4
修改bug
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
pkg/infrastructure/repository/pg_node_task_repository.go
pkg/infrastructure/repository/pg_node_task_repository.go
查看文件 @
63994e4
...
...
@@ -3,12 +3,13 @@ package repository
import
(
"errors"
"fmt"
"time"
"github.com/go-pg/pg/v10"
pgTransaction
"github.com/linmadan/egglib-go/transaction/pg"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/pg/models"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/utils"
"time"
)
type
NodeTaskRepository
struct
{
...
...
@@ -127,7 +128,6 @@ func (repo *NodeTaskRepository) Find(queryOptions map[string]interface{}) ([]*do
query
:=
tx
.
Model
(
&
m
)
.
Where
(
"deleted_at isnull"
)
if
v
,
ok
:=
queryOptions
[
"now"
]
.
(
time
.
Time
);
ok
{
query
.
Where
(
"next_sent_at isnull"
)
query
.
Where
(
"next_sent_at <= ?"
,
v
)
}
...
...
请
注册
或
登录
后发表评论