Skip to content

Commit 7721f7f

Browse files
author
pixel
committed
修改查询table sql语句 兼容性
1 parent e0825fa commit 7721f7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jwt:
1111
# mysql connect configuration
1212
mysql:
1313
username: root
14-
password: 'Aa@6447985'
15-
path: '127.0.0.1:3306'
14+
password: 'wztxz19971029'
15+
path: '47.103.196.252:3306'
1616
db-name: 'qmPlus'
1717
config: 'charset=utf8&parseTime=True&loc=Local'
1818
max-idle-conns: 10

server/service/sys_auto_code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func GetAllTplFile(pathName string, fileList []string) ([]string, error) {
119119
}
120120

121121
func GetTables(dbName string) (err error, TableNames []request.TableReq) {
122-
err = global.GVA_DB.Raw("select table_name from information_schema.tables where table_schema= ? and table_type= ? ", dbName, "base table").Scan(&TableNames).Error
122+
err = global.GVA_DB.Raw("select table_name as table_name from information_schema.tables where table_schema = ?", dbName).Scan(&TableNames).Error
123123
return err, TableNames
124124
}
125125

0 commit comments

Comments
 (0)