mybatis if test 不为空字符串或null <if test="type !=null and type !=''"> AND l.type=#{type,jdbcType=INTEGER} </if>