修复代码生成模块查询条件忘记加where

dep_wangsr
gcii 5 years ago committed by Limy
parent 2cc3aac632
commit 4914ee6f17

@ -55,12 +55,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult"> <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
<include refid="selectGenTableVo"/> <include refid="selectGenTableVo"/>
<where>
<if test="tableName != null and tableName != ''"> <if test="tableName != null and tableName != ''">
AND table_name like concat('%', #{tableName}, '%') AND table_name like concat('%', #{tableName}, '%')
</if> </if>
<if test="tableComment != null and tableComment != ''"> <if test="tableComment != null and tableComment != ''">
AND table_comment like concat('%', #{tableComment}, '%') AND table_comment like concat('%', #{tableComment}, '%')
</if> </if>
</where>
</select> </select>
<select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult"> <select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">

Loading…
Cancel
Save