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 }