mybatis if test 不为空字符串或null

     <if test="type !=null and type !=''">
            AND l.type=#{type,jdbcType=INTEGER}
        </if>
原文地址:https://www.cnblogs.com/liaojie970/p/6236102.html