bugfix: 在没有任务 uuid 的情况下,如果找不到任务记录不报错,影响流程
This commit is contained in:
parent
edef65a3e1
commit
5cdcf7376d
@ -497,10 +497,11 @@ func UpdateTaskProgress(req *CompleteTaskRequest) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
if err == gorm.ErrRecordNotFound {
|
if err == gorm.ErrRecordNotFound {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return commonErr.ReturnError(nil, "未找到任务记录", "该员工没有符合条件的未手动完成任务记录")
|
return nil
|
||||||
}
|
}
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return commonErr.ReturnError(err, "查询指派记录失败", "查询指派记录失败: ")
|
fmt.Println("查找指派记录失败")
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user