by Robin at 20240207;
This commit is contained in:
parent
d195f05661
commit
1f44a063f7
|
@ -24,6 +24,7 @@ func AddTasks(tasks []*dbstruct.ImageAuditTask) error {
|
||||||
|
|
||||||
func AddTask(task *dbstruct.ImageAuditTask) error {
|
func AddTask(task *dbstruct.ImageAuditTask) error {
|
||||||
// 若非对齐任务,则进行插入前预处理
|
// 若非对齐任务,则进行插入前预处理
|
||||||
|
task.BatchId = goproto.String(defaultImageAuditTaskScheduler.batchId)
|
||||||
if !task.IsForAlignment() {
|
if !task.IsForAlignment() {
|
||||||
if task == nil || task.AuditedMedia == nil {
|
if task == nil || task.AuditedMedia == nil {
|
||||||
return nil
|
return nil
|
||||||
|
@ -33,7 +34,6 @@ func AddTask(task *dbstruct.ImageAuditTask) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
task.BatchId = goproto.String(defaultImageAuditTaskScheduler.batchId)
|
|
||||||
task.Status = goproto.Int64(consts.ImageAudit_Created)
|
task.Status = goproto.Int64(consts.ImageAudit_Created)
|
||||||
|
|
||||||
if fragmentNum == 1 {
|
if fragmentNum == 1 {
|
||||||
|
|
|
@ -23,12 +23,12 @@ func AddTasks(tasks []*dbstruct.TextAuditTask) error {
|
||||||
|
|
||||||
func AddTask(task *dbstruct.TextAuditTask) error {
|
func AddTask(task *dbstruct.TextAuditTask) error {
|
||||||
// 若非对齐任务,则进行插入前预处理
|
// 若非对齐任务,则进行插入前预处理
|
||||||
|
task.BatchId = goproto.String(defaultTextAuditTaskScheduler.batchId)
|
||||||
if !task.IsForAlignment() {
|
if !task.IsForAlignment() {
|
||||||
if task == nil || task.AuditedText == nil {
|
if task == nil || task.AuditedText == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
task.BatchId = goproto.String(defaultTextAuditTaskScheduler.batchId)
|
|
||||||
task.Status = goproto.Int64(consts.TextAudit_Created)
|
task.Status = goproto.Int64(consts.TextAudit_Created)
|
||||||
|
|
||||||
// 1.写入文字审核表
|
// 1.写入文字审核表
|
||||||
|
|
Loading…
Reference in New Issue