切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
5c5618044a441017cc05fb259b18c37ce1b17a7e
2 个父辈
9fc1ce7f
a5f1f535
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
v2.2.0
v2.0.0
v1.3.2
v1.3.2-fix
v1.3.1
v1.3.0
v1.2.4
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
6 行增加
和
8 行删除
pkg/application/node_task/node_task_service.go
pkg/application/role/command/role_user_query.go
pkg/application/role/role_user_service.go
pkg/application/node_task/node_task_service.go
查看文件 @
5c56180
...
...
@@ -104,11 +104,12 @@ func (rs *NodeTaskService) SendEvaluationNode() error {
task
.
NextSentAt
=
&
nextTime
}
// 周期的截至时间=下一个周期的开始时间-1秒
// 周期的截至时间=下一个周期的开始时间-1秒
(需求方要求提交数据时间延长到第二天8点30分截止)
if
task
.
NextSentAt
==
nil
{
cycleTimeEnd
=
maxTime
}
else
{
cycleTimeEnd
=
task
.
NextSentAt
.
Local
()
.
Add
(
-
1
*
time
.
Second
)
//cycleTimeEnd = task.NextSentAt.Local().Add(-1 * time.Second) // 周期截至时间=下一个周期起始时间-1秒
cycleTimeEnd
=
task
.
NextSentAt
.
Local
()
.
Add
(
8
*
time
.
Hour
+
30
*
time
.
Minute
)
// 注.延长8.5小时
}
// 格式化周期的起始和截止时间
...
...
pkg/application/role/command/role_user_query.go
查看文件 @
5c56180
...
...
@@ -6,8 +6,8 @@ import "github.com/beego/beego/v2/core/validation"
type
UserRoleQueryCommand
struct
{
CompanyId
int64
`cname:"公司ID" json:"companyId"`
RoleId
int64
`cname:"角色ID" json:"roleId,string" valid:"Required"`
PageNumber
int64
`cname:"分页页码" json:"pageNumber"`
PageSize
int64
`cname:"分页数量" json:"pageSize"`
PageNumber
int
`cname:"分页页码" json:"pageNumber"`
PageSize
int
`cname:"分页数量" json:"pageSize"`
}
func
(
in
*
UserRoleQueryCommand
)
Valid
(
validation
*
validation
.
Validation
)
{
...
...
pkg/application/role/role_user_service.go
查看文件 @
5c56180
...
...
@@ -104,10 +104,7 @@ func (rs *RoleUserService) ListRole(in *command.UserRoleQueryCommand) (interface
}()
ruRepository
:=
factory
.
CreateRoleUserRepository
(
map
[
string
]
interface
{}{
"transactionContext"
:
transactionContext
})
in
.
PageNumber
=
1
in
.
PageSize
=
9999999
tempList
,
err
:=
ruRepository
.
FindAllContainUser
(
1
,
10
,
in
.
CompanyId
,
in
.
RoleId
)
tempList
,
err
:=
ruRepository
.
FindAllContainUser
(
in
.
PageNumber
,
in
.
PageSize
,
in
.
CompanyId
,
in
.
RoleId
)
if
err
!=
nil
{
return
nil
,
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
err
.
Error
())
}
...
...
请
注册
或
登录
后发表评论