使用where标签和if标签进行控制查询条件:
<select id="findByCondition" resultType="address" parameterType="address">
select * from address
<where>
<if test="des!=null">
des = #{des}
</if>
</where>
</select>