|
@@ -60,17 +60,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectPageGenTableList" parameterType="GenTable" resultMap="GenTableResult">
|
|
|
<include refid="selectGenTableVo"/>
|
|
|
<where>
|
|
|
- <if test="tableName != null and tableName != ''">
|
|
|
- AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
|
|
|
+ <if test="genTable.tableName != null and genTable.tableName != ''">
|
|
|
+ AND lower(table_name) like lower(concat('%', #{genTable.tableName}, '%'))
|
|
|
</if>
|
|
|
- <if test="tableComment != null and tableComment != ''">
|
|
|
- AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
|
|
|
+ <if test="genTable.tableComment != null and genTable.tableComment != ''">
|
|
|
+ AND lower(table_comment) like lower(concat('%', #{genTable.tableComment}, '%'))
|
|
|
</if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
+ <if test="genTable.params.beginTime != null and genTable.params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ AND date_format(create_time,'%y%m%d') >= date_format(#{genTable.params.beginTime},'%y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
- AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
+ <if test="genTable.params.endTime != null and genTable.params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ AND date_format(create_time,'%y%m%d') <= date_format(#{genTable.params.endTime},'%y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -80,17 +80,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where table_schema = (select database())
|
|
|
AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%'
|
|
|
AND table_name NOT IN (select table_name from gen_table)
|
|
|
- <if test="tableName != null and tableName != ''">
|
|
|
- AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
|
|
|
+ <if test="genTable.tableName != null and genTable.tableName != ''">
|
|
|
+ AND lower(table_name) like lower(concat('%', #{genTable.tableName}, '%'))
|
|
|
</if>
|
|
|
- <if test="tableComment != null and tableComment != ''">
|
|
|
- AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
|
|
|
+ <if test="genTable.tableComment != null and genTable.tableComment != ''">
|
|
|
+ AND lower(table_comment) like lower(concat('%', #{genTable.tableComment}, '%'))
|
|
|
</if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
+ <if test="genTable.params.beginTime != null and genTable.params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ AND date_format(create_time,'%y%m%d') >= date_format(#{genTable.params.beginTime},'%y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
- AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
+ <if test="genTable.params.endTime != null and genTable.params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ AND date_format(create_time,'%y%m%d') <= date_format(#{genTable.params.endTime},'%y%m%d')
|
|
|
</if>
|
|
|
</select>
|
|
|
|