...
|
...
|
@@ -44,18 +44,21 @@ |
|
|
<include refid="Base_Column_List" />
|
|
|
from message_type
|
|
|
<where>
|
|
|
<if test="name == null or name == ''">
|
|
|
parent_id = 0
|
|
|
</if>
|
|
|
<if test="id != null and id != ''">
|
|
|
and ID = #{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="type !=null and type > 0">
|
|
|
and type = #{type,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="des != null and des != ''">
|
|
|
and des like concat('%',#{des,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
and name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
...
|
...
|
|