This commit is contained in:
laodaming 2023-06-26 16:54:54 +08:00
parent 7f71afd8b0
commit f3eea7f664

View File

@ -62,6 +62,7 @@ func (l *UpdateProductModelLogic) UpdateProductModel(req *types.UpdateProductMod
Name: &req.LightData.Name, Name: &req.LightData.Name,
Info: &lightInfoJson, Info: &lightInfoJson,
} }
//开启事务
tx := l.svcCtx.MysqlConn.Begin() tx := l.svcCtx.MysqlConn.Begin()
lightModel := gmodel.NewFsProductModel3dLightModel(tx) lightModel := gmodel.NewFsProductModel3dLightModel(tx)
productModel3dModel := gmodel.NewFsProductModel3dModel(tx) productModel3dModel := gmodel.NewFsProductModel3dModel(tx)