Skip to content

Commit

Permalink
Update sys_auto_code.go
Browse files Browse the repository at this point in the history
  • Loading branch information
songzhibin97 committed Dec 10, 2022
1 parent 0f61da5 commit b32cb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/system/sys_auto_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (autoCodeService *AutoCodeService) GetAllTplFile(pathName string, fileList
//@return: err error, Columns []request.ColumnReq

func (autoCodeService *AutoCodeService) DropTable(BusinessDb, tableName string) error {
if BusinessDb != "" {
if BusinessDb == "" {
return global.GVA_DB.Exec("DROP TABLE " + tableName).Error
} else {
return global.MustGetGlobalDBByDBName(BusinessDb).Exec("DROP TABLE " + tableName).Error
Expand Down

0 comments on commit b32cb36

Please sign in to comment.