mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
代码生成器mssql、mysql、pgsql like匹配多张表问题的修改
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user