From 9542bab4068b0c483f536d923d01a5202be40635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B5=B7=E6=B6=9B?= Date: Mon, 19 Apr 2021 13:58:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8ms?= =?UTF-8?q?sql=E3=80=81mysql=E3=80=81pgsql=20like=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E5=A4=9A=E5=BC=A0=E8=A1=A8=E9=97=AE=E9=A2=98=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/GeneratorMssqlMapper.xml | 2 +- .../src/main/resources/mapper/GeneratorMySqlMapper.xml | 2 +- .../src/main/resources/mapper/GeneratorPgMapper.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMssqlMapper.xml b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMssqlMapper.xml index 4ea9b31a5..39d338f39 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMssqlMapper.xml +++ b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMssqlMapper.xml @@ -16,7 +16,7 @@ ) T - and T.tableName like concat('%', #{tableName}, '%') + and T.tableName = #{tableName} ORDER BY T.tableName diff --git a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMySqlMapper.xml b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMySqlMapper.xml index aaf0a711e..53aa2bf2c 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMySqlMapper.xml +++ b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorMySqlMapper.xml @@ -17,7 +17,7 @@ SELECT DATABASE ()) - and table_name like concat('%', #{tableName}, '%') + and table_name = #{tableName} order by create_time desc diff --git a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorPgMapper.xml b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorPgMapper.xml index 4b62ca251..91fb2d4fe 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorPgMapper.xml +++ b/pigx-visual/pigx-codegen/src/main/resources/mapper/GeneratorPgMapper.xml @@ -15,7 +15,7 @@ AND relname NOT LIKE'sql_%' AND relchecks = 0 - and pc.relname like concat('%', #{tableName}, '%') + and pc.relname = #{tableName} ORDER BY relname