Merge pull request 'by Robin at 20240207;' (#111) from feat-20240117-001-Robin into test

Reviewed-on: #111
This commit is contained in:
chenhao 2024-02-07 12:24:34 +08:00
commit cc576a5228
1 changed files with 4 additions and 2 deletions

View File

@ -2791,7 +2791,8 @@ func (m *Mongo) GetAlignedImageAuditTaskList(ctx *gin.Context, req *alignedaudit
list := make([]*dbstruct.ImageAuditTask, 0) list := make([]*dbstruct.ImageAuditTask, 0)
col := m.getColImageAuditTask() col := m.getColImageAuditTask()
query := qmgo.M{ query := qmgo.M{
"del_flag": 0, "is_aligned": consts.ImageAuditIsAligned_Yes,
"del_flag": 0,
} }
if req.RouteUrl != nil { if req.RouteUrl != nil {
query["route_url"] = util.DerefString(req.RouteUrl) query["route_url"] = util.DerefString(req.RouteUrl)
@ -2826,7 +2827,8 @@ func (m *Mongo) GetAlignedTextAuditTaskList(ctx *gin.Context, req *alignedauditt
list := make([]*dbstruct.TextAuditTask, 0) list := make([]*dbstruct.TextAuditTask, 0)
col := m.getColTextAuditTask() col := m.getColTextAuditTask()
query := qmgo.M{ query := qmgo.M{
"del_flag": 0, "is_aligned": consts.ImageAuditIsAligned_Yes,
"del_flag": 0,
} }
if req.RouteUrl != nil { if req.RouteUrl != nil {
query["route_url"] = util.DerefString(req.RouteUrl) query["route_url"] = util.DerefString(req.RouteUrl)