From 5136148ce1e7ec46eabab13e90dfc2862127c6f3 Mon Sep 17 00:00:00 2001 From: zhoumingfa Date: Mon, 31 Mar 2025 23:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=EF=BC=9Ajava.util.concurrent?= =?UTF-8?q?.ExecutionException:=20net.sf.jsqlparser.parser.ParseException:?= =?UTF-8?q?=20Encountered=20unexpected=20token:=20"tables"=20"TABLES"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/support/CodeGeneratorMapper.xml | 22 +++++++++---------- .../mapper/support/CodeGeneratorMapper.xml | 22 +++++++++---------- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/smart-admin-api-java17-springboot3/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml b/smart-admin-api-java17-springboot3/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml index 6d416d7c..167a81ad 100644 --- a/smart-admin-api-java17-springboot3/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml +++ b/smart-admin-api-java17-springboot3/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml @@ -9,8 +9,7 @@ and table_name = #{tableName} - select * from information_schema.columns where table_schema = (select database()) @@ -18,19 +17,18 @@ order by ordinal_position - select - tables.table_name, - tables.table_comment, - tables.create_time, - tables.update_time, + `tables`.table_name, + `tables`.table_comment, + `tables`.create_time, + `tables`.update_time, t_code_generator_config.update_time configTime - from information_schema.tables tables - left join t_code_generator_config on tables.table_name = t_code_generator_config.table_name - where tables.table_schema = (select database()) + from information_schema.tables `tables` + left join t_code_generator_config on `tables`.table_name = t_code_generator_config.table_name + where `tables`.table_schema = (select database()) - AND INSTR(tables.table_name,#{queryForm.tableNameKeywords}) + AND INSTR(`tables`.table_name,#{queryForm.tableNameKeywords}) \ No newline at end of file diff --git a/smart-admin-api-java8-springboot2/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml b/smart-admin-api-java8-springboot2/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml index 6d416d7c..167a81ad 100644 --- a/smart-admin-api-java8-springboot2/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml +++ b/smart-admin-api-java8-springboot2/sa-base/src/main/resources/mapper/support/CodeGeneratorMapper.xml @@ -9,8 +9,7 @@ and table_name = #{tableName} - select * from information_schema.columns where table_schema = (select database()) @@ -18,19 +17,18 @@ order by ordinal_position - select - tables.table_name, - tables.table_comment, - tables.create_time, - tables.update_time, + `tables`.table_name, + `tables`.table_comment, + `tables`.create_time, + `tables`.update_time, t_code_generator_config.update_time configTime - from information_schema.tables tables - left join t_code_generator_config on tables.table_name = t_code_generator_config.table_name - where tables.table_schema = (select database()) + from information_schema.tables `tables` + left join t_code_generator_config on `tables`.table_name = t_code_generator_config.table_name + where `tables`.table_schema = (select database()) - AND INSTR(tables.table_name,#{queryForm.tableNameKeywords}) + AND INSTR(`tables`.table_name,#{queryForm.tableNameKeywords}) \ No newline at end of file