by Robin at 20240223
This commit is contained in:
parent
48d087d6df
commit
f3f3c7633e
|
@ -60,7 +60,7 @@ type OpListReq struct {
|
|||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
Sort string
|
||||
IsAligned *int64
|
||||
NotAlignedOpt int
|
||||
}
|
||||
|
||||
type OpListData struct {
|
||||
|
|
|
@ -60,7 +60,7 @@ type OpListReq struct {
|
|||
Offset int `json:"offset"`
|
||||
Limit int `json:"limit"`
|
||||
Sort string
|
||||
IsAligned *int64
|
||||
NotAlignedOpt int64
|
||||
}
|
||||
|
||||
type OpListData struct {
|
||||
|
|
|
@ -2512,8 +2512,10 @@ func (m *Mongo) GetImageAuditTaskList(ctx *gin.Context, req *imageaudittaskproto
|
|||
if req.Status != nil {
|
||||
query["status"] = util.DerefInt64(req.Status)
|
||||
}
|
||||
if req.IsAligned != nil {
|
||||
query["is_aligned"] = util.DerefInt64(req.IsAligned)
|
||||
if req.NotAlignedOpt != 0 {
|
||||
query["is_aligned"] = qmgo.M{
|
||||
"$ne": consts.ImageAuditIsAligned_Yes,
|
||||
}
|
||||
}
|
||||
sortClause := "-ct"
|
||||
if req.Sort != "" {
|
||||
|
@ -2746,8 +2748,10 @@ func (m *Mongo) GetTextAuditTaskList(ctx *gin.Context, req *textaudittaskproto.O
|
|||
if req.Status != nil {
|
||||
query["status"] = util.DerefInt64(req.Status)
|
||||
}
|
||||
if req.IsAligned != nil {
|
||||
query["is_aligned"] = util.DerefInt64(req.IsAligned)
|
||||
if req.NotAlignedOpt != 0 {
|
||||
query["is_aligned"] = qmgo.M{
|
||||
"$ne": consts.TextAuditIsAligned_Yes,
|
||||
}
|
||||
}
|
||||
sortClause := "-ct"
|
||||
if req.Sort != "" {
|
||||
|
|
|
@ -2480,6 +2480,9 @@ func (s *Service) OpGetImageAuditTaskVOList(ctx *gin.Context, req *imageaudittas
|
|||
return
|
||||
}
|
||||
|
||||
// 仅查询未对齐的任务
|
||||
req.NotAlignedOpt = 1
|
||||
|
||||
list, err := _DefaultImageAuditTask.OpList(ctx, req)
|
||||
if err != nil {
|
||||
logger.Error("OpGetImageAuditTaskListByMid fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
|
@ -2547,6 +2550,9 @@ func (s *Service) OpGetTextAuditTaskVOList(ctx *gin.Context, req *textaudittaskp
|
|||
return
|
||||
}
|
||||
|
||||
// 仅查询未对齐的任务
|
||||
req.NotAlignedOpt = 1
|
||||
|
||||
list, err := _DefaultTextAuditTask.OpList(ctx, req)
|
||||
if err != nil {
|
||||
logger.Error("OpGetTextAuditTaskListByMid fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
|
|
|
@ -82,7 +82,8 @@ imageaudit:
|
|||
access_key_id: "LTAI5tD2Mg5mPUDQLPZZriPJ"
|
||||
access_key_secret: "IseIbk7fMbwy0eL33J2ro4Y55mWkn4"
|
||||
#scenes: "porn terrorism ad live logo"
|
||||
scenes: "porn terrorism live logo"
|
||||
#scenes: "porn terrorism live logo"
|
||||
scenes: "porn terrorism live"
|
||||
task_buffer_size: 100
|
||||
task_packet_size: 100
|
||||
|
||||
|
|
|
@ -81,7 +81,8 @@ imageaudit:
|
|||
access_key_id: "LTAI5tD2Mg5mPUDQLPZZriPJ"
|
||||
access_key_secret: "IseIbk7fMbwy0eL33J2ro4Y55mWkn4"
|
||||
#scenes: "porn terrorism ad live logo"
|
||||
scenes: "porn terrorism live logo"
|
||||
#scenes: "porn terrorism live logo"
|
||||
scenes: "porn terrorism live"
|
||||
task_buffer_size: 100
|
||||
task_packet_size: 100
|
||||
|
||||
|
|
Loading…
Reference in New Issue