From c00b628fb464685bc018eb76c086000a837286a5 Mon Sep 17 00:00:00 2001 From: piexlMax Date: Fri, 8 Sep 2023 16:54:41 +0800 Subject: [PATCH] =?UTF-8?q?[fixed]=E4=BF=AE=E5=A4=8D=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=BA=93=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81=E5=9B=9E=E6=BB=9A?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=88=A0=E8=A1=A8=E4=BD=8D=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/system/sys_auto_code.go | 2 ++ server/service/system/sys_autocode_history.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/service/system/sys_auto_code.go b/server/service/system/sys_auto_code.go index b5e263ad7..8b3f881a2 100644 --- a/server/service/system/sys_auto_code.go +++ b/server/service/system/sys_auto_code.go @@ -359,6 +359,7 @@ func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruc autoCode.TableName, idBf.String(), autoCode.Package, + autoCode.BusinessDB, ) } else { err = AutoCodeHistoryServiceApp.CreateAutoCodeHistory( @@ -370,6 +371,7 @@ func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruc autoCode.StructName, idBf.String(), autoCode.Package, + autoCode.BusinessDB, ) } } diff --git a/server/service/system/sys_autocode_history.go b/server/service/system/sys_autocode_history.go index 3185a8822..9b0b4961d 100644 --- a/server/service/system/sys_autocode_history.go +++ b/server/service/system/sys_autocode_history.go @@ -30,7 +30,7 @@ var AutoCodeHistoryServiceApp = new(AutoCodeHistoryService) // RouterPath : RouterPath@RouterString;RouterPath2@RouterString2 // Author [SliverHorn](https://github.com/SliverHorn) // Author [songzhibin97](https://github.com/songzhibin97) -func (autoCodeHistoryService *AutoCodeHistoryService) CreateAutoCodeHistory(meta, structName, structCNName, autoCodePath string, injectionMeta string, tableName string, apiIds string, Package string) error { +func (autoCodeHistoryService *AutoCodeHistoryService) CreateAutoCodeHistory(meta, structName, structCNName, autoCodePath string, injectionMeta string, tableName string, apiIds string, Package string, BusinessDB string) error { return global.GVA_DB.Create(&system.SysAutoCodeHistory{ Package: Package, RequestMeta: meta, @@ -40,6 +40,7 @@ func (autoCodeHistoryService *AutoCodeHistoryService) CreateAutoCodeHistory(meta StructCNName: structCNName, TableName: tableName, ApiIDs: apiIds, + BusinessDB: BusinessDB, }).Error }