|
@@ -74,6 +74,25 @@
|
|
|
</if>
|
|
</if>
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="@cc.iotkit.generator.core.DataBaseHelper@isH2()">
|
|
|
|
|
+ select table_name
|
|
|
|
|
+ from information_schema.tables
|
|
|
|
|
+ where
|
|
|
|
|
+ table_name NOT LIKE 'pj_%' AND table_name NOT LIKE 'gen_%'
|
|
|
|
|
+ <if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
|
|
|
|
+ AND table_name NOT IN
|
|
|
|
|
+ <foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="genTable.tableName != null and genTable.tableName != ''">
|
|
|
|
|
+ AND lower(table_name) like lower(concat('%', #{genTable.tableName}, '%'))
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="genTable.tableComment != null and genTable.tableComment != ''">
|
|
|
|
|
+ AND lower(table_comment) like lower(concat('%', #{genTable.tableComment}, '%'))
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by table_name desc
|
|
|
|
|
+ </if>
|
|
|
<if test="@cc.iotkit.generator.core.DataBaseHelper@isOracle()">
|
|
<if test="@cc.iotkit.generator.core.DataBaseHelper@isOracle()">
|
|
|
select lower(dt.table_name) as table_name, dtc.comments as table_comment, uo.created as create_time, uo.last_ddl_time as update_time
|
|
select lower(dt.table_name) as table_name, dtc.comments as table_comment, uo.created as create_time, uo.last_ddl_time as update_time
|
|
|
from user_tables dt, user_tab_comments dtc, user_objects uo
|
|
from user_tables dt, user_tab_comments dtc, user_objects uo
|
|
@@ -158,6 +177,14 @@
|
|
|
#{name}
|
|
#{name}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="@cc.iotkit.generator.core.DataBaseHelper@isH2()">
|
|
|
|
|
+ select table_name from information_schema.tables
|
|
|
|
|
+ where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%'
|
|
|
|
|
+ and table_name in
|
|
|
|
|
+ <foreach collection="list" item="name" open="(" separator="," close=")">
|
|
|
|
|
+ #{name}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
<if test="@cc.iotkit.generator.core.DataBaseHelper@isOracle()">
|
|
<if test="@cc.iotkit.generator.core.DataBaseHelper@isOracle()">
|
|
|
select lower(dt.table_name) as table_name, dtc.comments as table_comment, uo.created as create_time, uo.last_ddl_time as update_time
|
|
select lower(dt.table_name) as table_name, dtc.comments as table_comment, uo.created as create_time, uo.last_ddl_time as update_time
|
|
|
from user_tables dt, user_tab_comments dtc, user_objects uo
|
|
from user_tables dt, user_tab_comments dtc, user_objects uo
|