Merge branch 'feat-cjy-taskBench' into dev
This commit is contained in:
commit
2dbfe94c14
@ -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