Skip to content

Commit 2f07e92

Browse files
authored
fix: 修复在多库模式下生成代码时候用默认库用错的情况 (#2038)
1 parent 3e9602f commit 2f07e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/resource/package/server/service/service.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}DataSou
195195
{{$key}} := make([]map[string]any, 0)
196196
{{ $dataDB := "" }}
197197
{{- if eq $value.DBName "" }}
198-
{{ $dataDB = $db }}
198+
{{ $dataDB = "global.GVA_DB" }}
199199
{{- else}}
200200
{{ $dataDB = printf "global.MustGetGlobalDBByDBName(\"%s\")" $value.DBName }}
201201
{{- end}}

0 commit comments

Comments
 (0)