|
@@ -78,7 +78,7 @@
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDbTableList" resultMap="GenTableResult">
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
select table_name, table_comment, create_time, update_time
|
|
|
from information_schema.tables
|
|
|
where table_schema = (select database())
|
|
@@ -93,7 +93,7 @@
|
|
|
order by create_time desc
|
|
|
limit ${pageOffset}, ${pageSize}
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
select table_name, table_comment, create_time, update_time
|
|
|
from (
|
|
|
SELECT c.relname AS table_name,
|
|
@@ -118,7 +118,7 @@
|
|
|
order by create_time desc
|
|
|
limit ${pageSize} OFFSET ${pageOffset}
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
select so.NAME table_name, st.COMMENT$ table_comment, so.CRTDATE create_time from SYS.SYSOBJECTS so left join
|
|
|
SYS.SYSTABLECOMMENTS st on so.NAME = st.TVNAME and st.TABLE_TYPE = 'TABLE' and st.SCHNAME = (select CURR_SCH
|
|
|
from V$SESSIONS WHERE CURR_SCH = 'km' LIMIT 1)
|
|
@@ -141,7 +141,7 @@
|
|
|
|
|
|
<select id="selectDbTableList_COUNT" resultType="long">
|
|
|
select count(*) from
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
(select table_name, table_comment, create_time, update_time
|
|
|
from information_schema.tables
|
|
|
where table_schema = (select database())
|
|
@@ -155,7 +155,7 @@
|
|
|
</if>
|
|
|
) t
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
(select table_name, table_comment, create_time, update_time
|
|
|
from (
|
|
|
SELECT c.relname AS table_name,
|
|
@@ -178,7 +178,7 @@
|
|
|
AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
|
|
|
</if>) t
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
(select so.NAME table_name, st.COMMENT$ table_comment, so.CRTDATE create_time from SYS.SYSOBJECTS so left
|
|
|
join
|
|
|
SYS.SYSTABLECOMMENTS st on so.NAME = st.TVNAME and st.TABLE_TYPE = 'TABLE' and st.SCHNAME = (select CURR_SCH
|
|
@@ -199,7 +199,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDbTableListByNames" resultMap="GenTableResult">
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isMySql()">
|
|
|
select table_name, table_comment, create_time, update_time from information_schema.tables
|
|
|
where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database())
|
|
|
and table_name in
|
|
@@ -207,7 +207,7 @@
|
|
|
#{name}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isPostgreSql()">
|
|
|
select table_name, table_comment, create_time, update_time
|
|
|
from (
|
|
|
SELECT c.relname AS table_name,
|
|
@@ -227,7 +227,7 @@
|
|
|
#{name}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="@com.km.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
+ <if test="@org.eco.common.orm.helper.DataBaseHelper@isDmSql()">
|
|
|
select so.NAME table_name, st.COMMENT$ table_comment, so.CRTDATE create_time from SYS.SYSOBJECTS so left join
|
|
|
SYS.SYSTABLECOMMENTS st on so.NAME = st.TVNAME and st.TABLE_TYPE = 'TABLE' and st.SCHNAME = (select CURR_SCH
|
|
|
from V$SESSIONS WHERE CURR_SCH = 'km' LIMIT 1)
|