From 816b81b5f61078cec1b91397d707cbb9d0fa46ba Mon Sep 17 00:00:00 2001 From: zengwei <544278032@qq.com> Date: Thu, 21 Sep 2023 10:43:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=93=8D=E4=BD=9C=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E8=BF=87=E7=A8=8B=E4=B8=AD=E5=87=BA=E7=8E=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=B9=B6=E8=BF=94=E5=9B=9E,=E4=BA=8B=E5=8A=A1=E6=9C=AA?= =?UTF-8?q?=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/handle.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/service/handle.go b/pkg/service/handle.go index b5e176d3..05603094 100644 --- a/pkg/service/handle.go +++ b/pkg/service/handle.go @@ -779,6 +779,7 @@ func (h *Handle) HandleWorkOrder( Where("user_id = ?", tools.GetUserId(c)). Find(¤tUserInfo).Error if err != nil { + h.tx.Rollback() return } @@ -805,6 +806,7 @@ func (h *Handle) HandleWorkOrder( // 获取流程通知类型列表 err = json.Unmarshal(processInfo.Notice, ¬iceList) if err != nil { + h.tx.Rollback() return } @@ -816,6 +818,7 @@ func (h *Handle) HandleWorkOrder( Pluck("email", &emailCCList).Error if err != nil { err = errors.New("查询邮件抄送人失败") + h.tx.Rollback() return } } @@ -862,6 +865,7 @@ func (h *Handle) HandleWorkOrder( Where("user_id = ?", h.workOrderDetails.Creator). Find(&sendToUserList).Error if err != nil { + h.tx.Rollback() return }