模糊查询的时候为什么不能两个字段一起查
<select id="queryMessageList" parameterType="com.imooc.bean.Message" resultMap="MessageResult">
select ID,COMMAND,DESCRIPTION,CONTENT from MESSAGE
<where>
<if test="command != null and !"".equals(command.trim())">
and COMMAND=#{command}
</if>
<if test="description != null and !"".equals(description.trim())">
and DESCRIPTION like '%' #{description} '%'
</if>
</where>
</select>command 等于号改改成了 like + % 为什么就是查不到结果
DESCRIPTION 一直就可以啊 而且debug调试的时候都有值的