|
|
|
@@ -2,6 +2,7 @@ package xjlab |
|
|
|
|
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
|
|
|
|
jsoniter "github.com/json-iterator/go" |
|
|
|
@@ -127,7 +128,12 @@ func (l *PageListTaskLogic) buildBaseQuery(req *types.XJLABTaskReq) *gorm.DB { |
|
|
|
|
|
|
|
// 任务状态筛选 |
|
|
|
if req.Status != "" { |
|
|
|
db = db.Where("status = ?", req.Status) |
|
|
|
split := strings.Split(req.Status, ",") |
|
|
|
if len(split) > 1 { |
|
|
|
db = db.Where("status IN ?", split) |
|
|
|
} else { |
|
|
|
db = db.Where("status = ?", req.Status) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 时间范围筛选 |
|
|
|
|