mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-23 22:06:39 +08:00
解决:java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "tables" "TABLES"
This commit is contained in:
parent
45b5ba6795
commit
5136148ce1
@ -9,8 +9,7 @@
|
|||||||
and table_name = #{tableName}
|
and table_name = #{tableName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTableColumn"
|
<select id="selectTableColumn" resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableColumnVO">
|
||||||
resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableColumnVO">
|
|
||||||
select *
|
select *
|
||||||
from information_schema.columns
|
from information_schema.columns
|
||||||
where table_schema = (select database())
|
where table_schema = (select database())
|
||||||
@ -18,19 +17,18 @@
|
|||||||
order by ordinal_position
|
order by ordinal_position
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryTableList"
|
<select id="queryTableList" resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableVO">
|
||||||
resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableVO">
|
|
||||||
select
|
select
|
||||||
tables.table_name,
|
`tables`.table_name,
|
||||||
tables.table_comment,
|
`tables`.table_comment,
|
||||||
tables.create_time,
|
`tables`.create_time,
|
||||||
tables.update_time,
|
`tables`.update_time,
|
||||||
t_code_generator_config.update_time configTime
|
t_code_generator_config.update_time configTime
|
||||||
from information_schema.tables tables
|
from information_schema.tables `tables`
|
||||||
left join t_code_generator_config on tables.table_name = t_code_generator_config.table_name
|
left join t_code_generator_config on `tables`.table_name = t_code_generator_config.table_name
|
||||||
where tables.table_schema = (select database())
|
where `tables`.table_schema = (select database())
|
||||||
<if test="queryForm.tableNameKeywords != null and queryForm.tableNameKeywords != ''">
|
<if test="queryForm.tableNameKeywords != null and queryForm.tableNameKeywords != ''">
|
||||||
AND INSTR(tables.table_name,#{queryForm.tableNameKeywords})
|
AND INSTR(`tables`.table_name,#{queryForm.tableNameKeywords})
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@ -9,8 +9,7 @@
|
|||||||
and table_name = #{tableName}
|
and table_name = #{tableName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTableColumn"
|
<select id="selectTableColumn" resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableColumnVO">
|
||||||
resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableColumnVO">
|
|
||||||
select *
|
select *
|
||||||
from information_schema.columns
|
from information_schema.columns
|
||||||
where table_schema = (select database())
|
where table_schema = (select database())
|
||||||
@ -18,19 +17,18 @@
|
|||||||
order by ordinal_position
|
order by ordinal_position
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryTableList"
|
<select id="queryTableList" resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableVO">
|
||||||
resultType="net.lab1024.sa.base.module.support.codegenerator.domain.vo.TableVO">
|
|
||||||
select
|
select
|
||||||
tables.table_name,
|
`tables`.table_name,
|
||||||
tables.table_comment,
|
`tables`.table_comment,
|
||||||
tables.create_time,
|
`tables`.create_time,
|
||||||
tables.update_time,
|
`tables`.update_time,
|
||||||
t_code_generator_config.update_time configTime
|
t_code_generator_config.update_time configTime
|
||||||
from information_schema.tables tables
|
from information_schema.tables `tables`
|
||||||
left join t_code_generator_config on tables.table_name = t_code_generator_config.table_name
|
left join t_code_generator_config on `tables`.table_name = t_code_generator_config.table_name
|
||||||
where tables.table_schema = (select database())
|
where `tables`.table_schema = (select database())
|
||||||
<if test="queryForm.tableNameKeywords != null and queryForm.tableNameKeywords != ''">
|
<if test="queryForm.tableNameKeywords != null and queryForm.tableNameKeywords != ''">
|
||||||
AND INSTR(tables.table_name,#{queryForm.tableNameKeywords})
|
AND INSTR(`tables`.table_name,#{queryForm.tableNameKeywords})
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user