From 979df28ae2f6d56fc4cec283d066752c6131642b Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 28 Jun 2023 17:06:26 +0800 Subject: [PATCH] fix --- server/inventory/internal/logic/supplementlogic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/inventory/internal/logic/supplementlogic.go b/server/inventory/internal/logic/supplementlogic.go index 827f4929..3a82b9bc 100644 --- a/server/inventory/internal/logic/supplementlogic.go +++ b/server/inventory/internal/logic/supplementlogic.go @@ -120,6 +120,7 @@ func (l *SupplementLogic) Supplement(req *types.SupplementReq, userinfo *auth.Us logx.Error(err) return resp.SetStatusWithMessage(basic.CodeServiceErr, "gen order detail sn err") } + //事务处理数据 err = l.svcCtx.MysqlConn.Transaction(func(tx *gorm.DB) error { orderModel := gmodel.NewFsOrderModel(tx) orderDetailModel := gmodel.NewFsOrderDetailModel(tx)