|
|
@@ -19,9 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectDbTableList" parameterType="com.xueyi.gen.domain.dto.GenTableDto" resultMap="GenTableResult"> |
|
|
|
<include refid="schema"/> |
|
|
|
where table_schema = (select database()) |
|
|
|
AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%' |
|
|
|
AND table_name NOT IN (select name from gen_table) |
|
|
|
-- where table_schema = (select database()) |
|
|
|
where table_schema LIKE 'xy-%' |
|
|
|
AND table_name LIKE 'dm_%' |
|
|
|
-- AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%' |
|
|
|
-- AND table_name NOT IN (select name from gen_table) |
|
|
|
|
|
|
|
<if test="name != null and name != ''"> |
|
|
|
AND lower(table_name) like lower(concat('%', #{name}, '%')) |
|
|
|
</if> |
|
|
@@ -33,7 +36,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectDbTableListByNames" resultMap="GenTableResult"> |
|
|
|
<include refid="schema"/> |
|
|
|
where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database()) |
|
|
|
-- where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database()) |
|
|
|
where table_schema LIKE 'xy-%' |
|
|
|
AND table_name LIKE 'dm_%' |
|
|
|
and table_name in |
|
|
|
<foreach collection="array" item="name" open="(" separator="," close=")"> |
|
|
|
#{name} |
|
|
@@ -42,7 +47,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectDbTableByName" parameterType="String" resultMap="GenTableResult"> |
|
|
|
<include refid="schema"/> |
|
|
|
where table_comment <![CDATA[ <> ]]> '' and table_schema = (select database()) |
|
|
|
where table_comment <![CDATA[ <> ]]> '' |
|
|
|
-- and table_schema = (select database()) |
|
|
|
and table_schema LIKE 'xy-%' |
|
|
|
and table_name = #{name} |
|
|
|
</select> |
|
|
|
|