From f3eea7f66435002b5159492f4e8c5fb70411a13a Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 26 Jun 2023 16:54:54 +0800 Subject: [PATCH] fix --- server/product-model/internal/logic/updateproductmodellogic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/product-model/internal/logic/updateproductmodellogic.go b/server/product-model/internal/logic/updateproductmodellogic.go index b501f28d..870cc7da 100644 --- a/server/product-model/internal/logic/updateproductmodellogic.go +++ b/server/product-model/internal/logic/updateproductmodellogic.go @@ -62,6 +62,7 @@ func (l *UpdateProductModelLogic) UpdateProductModel(req *types.UpdateProductMod Name: &req.LightData.Name, Info: &lightInfoJson, } + //开启事务 tx := l.svcCtx.MysqlConn.Begin() lightModel := gmodel.NewFsProductModel3dLightModel(tx) productModel3dModel := gmodel.NewFsProductModel3dModel(tx)