代码生成器mssql、mysql、pgsql like匹配多张表问题的修改

This commit is contained in:
刘海涛 committed 2021-04-19 13:58:25 +08:00
1 parent d9a0f9e8fe
commit 9542bab406
3 files changed
+3 -3

No files matched your search

@@ -16,7 +16,7 @@
) T
<where>
<if test="tableName != null and tableName.trim() != ''">
and T.tableName like concat('%', #{tableName}, '%')
and T.tableName = #{tableName}
</if>
</where>
ORDER BY T.tableName
@@ -17,7 +17,7 @@
SELECT DATABASE
())
<if test="tableName != null and tableName.trim() != ''">
and table_name like concat('%', #{tableName}, '%')
and table_name = #{tableName}
</if>
order by create_time desc
</select>
@@ -15,7 +15,7 @@
AND relname NOT LIKE'sql_%'
AND relchecks = 0
<if test="tableName != null and tableName.trim() != ''">
and pc.relname like concat('%', #{tableName}, '%')
and pc.relname = #{tableName}
</if>
ORDER BY relname
</select>