Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-operation-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-operation-api
Commits
cfc0c233
Commit
cfc0c233
authored
Jul 02, 2023
by
陈子龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主机管理 fix
parent
51eebe6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
src/bean/vo/response/host_manage.go
src/bean/vo/response/host_manage.go
+3
-0
src/service/host_manage.go
src/service/host_manage.go
+2
-1
src/service/task_manage.go
src/service/task_manage.go
+1
-1
No files found.
src/bean/vo/response/host_manage.go
View file @
cfc0c233
...
...
@@ -29,6 +29,9 @@ type HostList struct {
Id
int
`json:"id"`
// id
Ip
string
`json:"ip"`
// ip
Port
string
`json:"port"`
// 端口
VoucherType
int
`json:"voucher_type"`
// 凭证类型(0密码验证 密钥验证)
UserName
string
`json:"user_name"`
// 用户名
Password
string
`json:"password"`
// 密码
HostFileUrl
string
`json:"host_file_url"`
// 主机文件url
}
...
...
src/service/host_manage.go
View file @
cfc0c233
...
...
@@ -307,10 +307,11 @@ func (h *HostManageSvc) PageListHostManage(req request.ListHostManageReq) (total
finder
.
Where
(
"hm.host_name LIKE ?"
,
"%"
+
req
.
Search
+
"%"
)
}
if
req
.
CreateDateFrom
!=
""
{
finder
.
Where
(
"hm.create_time >= ?"
,
req
.
CreateDateFrom
)
}
if
req
.
CreateDateTo
!=
""
{
finder
.
Where
(
"hm.create_time <= ?"
,
req
.
CreateDate
From
)
finder
.
Where
(
"hm.create_time <= ?"
,
req
.
CreateDate
To
)
}
finder
.
OrderBy
(
"hm.id"
)
//查询任务
...
...
src/service/task_manage.go
View file @
cfc0c233
...
...
@@ -134,7 +134,7 @@ func (t *TaskManageSvc) ListTaskManage(req request.ListTaskManageReq) (total int
finder
.
Where
(
"create_time >= ?"
,
req
.
CreateDateFrom
)
}
if
req
.
CreateDateTo
!=
""
{
finder
.
Where
(
"create_time <= ?"
,
req
.
CreateDate
From
)
finder
.
Where
(
"create_time <= ?"
,
req
.
CreateDate
To
)
}
finder
.
OrderBy
(
"id"
)
//查询任务
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment