首页 > mybatis中的<if test="name != null">and a.name=#{name}</if>
其中name!=null的name是什么
就是#{name}中的name,意思就是当传入的参数name不为null时才执行这个语句。