From 6a105190fc9afba30b73809aeb7fa0084fd38614 Mon Sep 17 00:00:00 2001 From: gy <997485446@qq.com> Date: Wed, 14 Sep 2022 18:13:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8F=AA=E4=BF=AE=E6=94=B9=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/work.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/work.go b/pkg/model/work.go index 4921b48..61c228e 100644 --- a/pkg/model/work.go +++ b/pkg/model/work.go @@ -79,7 +79,7 @@ func (m *Work) UpdateApprovalContent(in *approval.CreateRequest, a *Approval) er m.ReturnAt = in.Work.ReturnAt m.ReceivedAt = in.Work.ReceivedAt - if err = DB.Save(m).Error; err != nil { + if err = DB.Model(&m).Updates(m).Error; err != nil { return err }