mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-04-26 00:00:04 +08:00
修复 代码生成信息 反显问题
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"groupId" : "f2538e0f370a4cabab0ae920f5e77ae7",
|
||||
"name" : "执行生成",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1653992145291,
|
||||
"updateTime" : 1654682481038,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@@ -324,12 +324,12 @@ columns.forEach(it => {
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
datasource = datasource || ''
|
||||
var commonField = db[datasource].select("""
|
||||
SELECT
|
||||
column_name
|
||||
FROM
|
||||
information_schema.COLUMNS
|
||||
information_schema.COLUMNS
|
||||
WHERE
|
||||
table_name = #{tableName} AND column_name IN ( 'is_del', 'create_by', 'create_date', 'update_by', 'update_date' ) AND table_schema = DATABASE()
|
||||
""")
|
||||
@@ -406,4 +406,4 @@ componentInfo.setPath("/list")
|
||||
componentInfo.setScript(componentScript)
|
||||
MagicResourceService.saveFile(componentInfo)
|
||||
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"groupId" : "f2538e0f370a4cabab0ae920f5e77ae7",
|
||||
"name" : "查出所有表",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1653990626738,
|
||||
"updateTime" : 1654682333737,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@@ -130,6 +130,6 @@
|
||||
}
|
||||
}
|
||||
================================
|
||||
return db[datasource].select("""
|
||||
return db[datasource || ''].select("""
|
||||
select table_name, table_comment from information_schema.tables where table_schema = database()
|
||||
""").map(it => { label: it.tableName + `(${it.tableComment})`, value: it.tableName })
|
||||
@@ -5,7 +5,7 @@
|
||||
"groupId" : "f2538e0f370a4cabab0ae920f5e77ae7",
|
||||
"name" : "根据表名查出所有列",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1653991292310,
|
||||
"updateTime" : 1654682348773,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@@ -191,7 +191,7 @@
|
||||
}
|
||||
================================
|
||||
return {
|
||||
columns: db[datasource].select("""
|
||||
columns: db[datasource || ''].select("""
|
||||
SELECT
|
||||
column_name,
|
||||
column_comment,
|
||||
|
||||
Reference in New Issue
Block a user