mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-22 02:50:00 +08:00
还原更改
This commit is contained in:
parent
a9bfbaf241
commit
ad4cb7862f
@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select table_name, table_comment, create_time, update_time
|
select table_name, table_comment, create_time, update_time
|
||||||
from information_schema.tables
|
from information_schema.tables
|
||||||
where table_schema = (select database())
|
where table_schema = (select database())
|
||||||
AND table_name NOT LIKE 'gen_%'
|
AND table_name NOT LIKE 'pj_%' AND table_name NOT LIKE 'gen_%'
|
||||||
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
||||||
AND table_name NOT IN
|
AND table_name NOT IN
|
||||||
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
||||||
@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where dt.table_name = dtc.table_name
|
where dt.table_name = dtc.table_name
|
||||||
and dt.table_name = uo.object_name
|
and dt.table_name = uo.object_name
|
||||||
and uo.object_type = 'TABLE'
|
and uo.object_type = 'TABLE'
|
||||||
AND dt.table_name NOT LIKE 'GEN_%'
|
AND dt.table_name NOT LIKE 'pj_%' AND dt.table_name NOT LIKE 'GEN_%'
|
||||||
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
||||||
AND lower(dt.table_name) NOT IN
|
AND lower(dt.table_name) NOT IN
|
||||||
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
||||||
@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND n.nspname = 'public'::name
|
AND n.nspname = 'public'::name
|
||||||
AND n.nspname <![CDATA[ <> ]]> ''::name
|
AND n.nspname <![CDATA[ <> ]]> ''::name
|
||||||
) list_table
|
) list_table
|
||||||
where table_name NOT LIKE 'gen_%'
|
where table_name NOT LIKE 'pj_%' AND table_name NOT LIKE 'gen_%'
|
||||||
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
||||||
AND table_name NOT IN
|
AND table_name NOT IN
|
||||||
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
||||||
@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM SYSOBJECTS D
|
FROM SYSOBJECTS D
|
||||||
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
||||||
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
||||||
AND D.NAME NOT LIKE 'gen_%'
|
AND D.NAME NOT LIKE 'pj_%' AND D.NAME NOT LIKE 'gen_%'
|
||||||
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
<if test="genTable.params.genTableNames != null and genTable.params.genTableNames.size > 0">
|
||||||
AND D.NAME NOT IN
|
AND D.NAME NOT IN
|
||||||
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
<foreach collection="genTable.params.genTableNames" open="(" close=")" separator="," item="item">
|
||||||
@ -112,7 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectDbTableListByNames" resultMap="GenTableResult">
|
<select id="selectDbTableListByNames" resultMap="GenTableResult">
|
||||||
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isMySql()">
|
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isMySql()">
|
||||||
select table_name, table_comment, create_time, update_time from information_schema.tables
|
select table_name, table_comment, create_time, update_time from information_schema.tables
|
||||||
where table_name NOT LIKE 'gen_%' and table_schema = (select database())
|
where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database())
|
||||||
and table_name in
|
and table_name in
|
||||||
<foreach collection="array" item="name" open="(" separator="," close=")">
|
<foreach collection="array" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
@ -124,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where dt.table_name = dtc.table_name
|
where dt.table_name = dtc.table_name
|
||||||
and dt.table_name = uo.object_name
|
and dt.table_name = uo.object_name
|
||||||
and uo.object_type = 'TABLE'
|
and uo.object_type = 'TABLE'
|
||||||
AND ```````dt.table_name NOT LIKE 'GEN_%'
|
AND dt.table_name NOT LIKE 'pj_%' AND dt.table_name NOT LIKE 'GEN_%'
|
||||||
and lower(dt.table_name) in
|
and lower(dt.table_name) in
|
||||||
<foreach collection="array" item="name" open="(" separator="," close=")">
|
<foreach collection="array" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
@ -144,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND n.nspname = 'public'::name
|
AND n.nspname = 'public'::name
|
||||||
AND n.nspname <![CDATA[ <> ]]> ''::name
|
AND n.nspname <![CDATA[ <> ]]> ''::name
|
||||||
) list_table
|
) list_table
|
||||||
where table_name NOT LIKE 'gen_%'
|
where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%'
|
||||||
and table_name in
|
and table_name in
|
||||||
<foreach collection="array" item="name" open="(" separator="," close=")">
|
<foreach collection="array" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
@ -158,7 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM SYSOBJECTS D
|
FROM SYSOBJECTS D
|
||||||
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
||||||
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
||||||
AND D.NAME NOT LIKE 'gen_%'
|
AND D.NAME NOT LIKE 'pj_%' AND D.NAME NOT LIKE 'gen_%'
|
||||||
AND D.NAME in
|
AND D.NAME in
|
||||||
<foreach collection="array" item="name" open="(" separator="," close=")">
|
<foreach collection="array" item="name" open="(" separator="," close=")">
|
||||||
#{name}
|
#{name}
|
||||||
@ -169,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectTableByName" parameterType="String" resultMap="GenTableResult">
|
<select id="selectTableByName" parameterType="String" resultMap="GenTableResult">
|
||||||
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isMySql()">
|
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isMySql()">
|
||||||
select table_name, table_comment, create_time, update_time from information_schema.tables
|
select table_name, table_comment, create_time, update_time from information_schema.tables
|
||||||
where table_name NOT LIKE 'gen_%' and table_schema = (select database())
|
where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database())
|
||||||
and table_name = #{tableName}
|
and table_name = #{tableName}
|
||||||
</if>
|
</if>
|
||||||
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isOracle()">
|
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isOracle()">
|
||||||
@ -178,7 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where dt.table_name = dtc.table_name
|
where dt.table_name = dtc.table_name
|
||||||
and dt.table_name = uo.object_name
|
and dt.table_name = uo.object_name
|
||||||
and uo.object_type = 'TABLE'
|
and uo.object_type = 'TABLE'
|
||||||
AND dt.table_name NOT LIKE 'GEN_%'
|
AND dt.table_name NOT LIKE 'pj_%' AND dt.table_name NOT LIKE 'GEN_%'
|
||||||
AND dt.table_name NOT IN (select table_name from gen_table)
|
AND dt.table_name NOT IN (select table_name from gen_table)
|
||||||
and lower(dt.table_name) = #{tableName}
|
and lower(dt.table_name) = #{tableName}
|
||||||
</if>
|
</if>
|
||||||
@ -196,7 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND n.nspname = 'public'::name
|
AND n.nspname = 'public'::name
|
||||||
AND n.nspname <![CDATA[ <> ]]> ''::name
|
AND n.nspname <![CDATA[ <> ]]> ''::name
|
||||||
) list_table
|
) list_table
|
||||||
where table_name NOT LIKE 'gen_%'
|
where table_name NOT LIKE 'pj_%' and table_name NOT LIKE 'gen_%'
|
||||||
and table_name = #{tableName}
|
and table_name = #{tableName}
|
||||||
</if>
|
</if>
|
||||||
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isSqlServer()">
|
<if test="@org.dromara.common.mybatis.helper.DataBaseHelper@isSqlServer()">
|
||||||
@ -207,7 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM SYSOBJECTS D
|
FROM SYSOBJECTS D
|
||||||
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
INNER JOIN SYS.EXTENDED_PROPERTIES F ON D.ID = F.MAJOR_ID
|
||||||
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
AND F.MINOR_ID = 0 AND D.XTYPE = 'U' AND D.NAME != 'DTPROPERTIES'
|
||||||
AND D.NAME NOT LIKE 'gen_%'
|
AND D.NAME NOT LIKE 'pj_%' AND D.NAME NOT LIKE 'gen_%'
|
||||||
AND D.NAME = #{tableName}
|
AND D.NAME = #{tableName}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user