From 5cdcf7376dc39babec32be8c9b0ec314a6360a77 Mon Sep 17 00:00:00 2001 From: cjy Date: Thu, 23 Oct 2025 11:51:17 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E5=9C=A8=E6=B2=A1=E6=9C=89=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=20uuid=20=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=89=BE=E4=B8=8D=E5=88=B0=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=AE=B0=E5=BD=95=E4=B8=8D=E6=8A=A5=E9=94=99=EF=BC=8C?= =?UTF-8?q?=E5=BD=B1=E5=93=8D=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/taskDao.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/dao/taskDao.go b/internal/dao/taskDao.go index 8066dc8..af94efa 100644 --- a/internal/dao/taskDao.go +++ b/internal/dao/taskDao.go @@ -497,10 +497,11 @@ func UpdateTaskProgress(req *CompleteTaskRequest) error { if err != nil { if err == gorm.ErrRecordNotFound { tx.Rollback() - return commonErr.ReturnError(nil, "未找到任务记录", "该员工没有符合条件的未手动完成任务记录") + return nil } tx.Rollback() - return commonErr.ReturnError(err, "查询指派记录失败", "查询指派记录失败: ") + fmt.Println("查找指派记录失败") + return nil } }