This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
pcm-coordinator
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request '任务列表新增id筛选' (
#533
) from zhangweiii/pcm-coordinator:master into master
pull/534/head
zhangweiii
3 months ago
parent
33ebd375c8
f364c348cf
commit
dadadd25f9
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
internal/logic/core/pagelisttasklogic.go
+1
-0
internal/types/types.go
+ 3
- 1
internal/logic/core/pagelisttasklogic.go
View File
@@ -42,7 +42,9 @@ func (l *PageListTaskLogic) PageListTask(req *types.PageTaskReq) (resp *types.Pa
if req.UserName != "" && req.UserName != "admin" {
db = db.Where("user_id = ?", req.UserId)
}
if req.Id != "" {
db = db.Where("id = ?", req.Id)
}
db = db.Where("deleted_at is null")
if req.Name != "" {
db = db.Where("name LIKE ?", "%"+req.Name+"%")
+ 1
- 0
internal/types/types.go
View File
@@ -6443,6 +6443,7 @@ type NodesLoadTopResp struct {
}
type PageTaskReq struct {
Id string `form:"id,optional"`
UserId int64 `form:"userId,optional"`
Name string `form:"name,optional"`
Type string `form:"type,optional"`
Write
Preview
Loading…
Cancel
Save