From 06cff5f59c72d36b745515d98b9e645e92bb91a3 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 23 八月 2023 20:14:23 +0800 Subject: [PATCH] 修改获取工艺参数等待超时,修改生产进度返回值参数 --- model/util.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/util.go b/model/util.go index 224ad68..55746a4 100644 --- a/model/util.go +++ b/model/util.go @@ -1,14 +1,14 @@ package model import ( - "apsClient/pkg/mysqlx" + "apsClient/pkg/sqlitex" "fmt" "gorm.io/gorm" ) // WithTransaction 锛� var funcs []func(db *gorm.DB) error锛屾妸鐩稿叧鍑芥暟娣诲姞杩涘幓 func WithTransaction(fns ...func(*gorm.DB) error) (err error) { - tx := mysqlx.GetDB().Begin() + tx := sqlitex.GetDB().Begin() defer func() { if r := recover(); r != nil { tx.Rollback() -- Gitblit v1.8.0