<if test="type !=null and type !=''">
            AND l.type=#{type,jdbcType=INTEGER}
        </if>