异常如下:
Caused by: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'type.code != null '. Cause: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "code")
处理结果如下:
<if test="type!= null and type.code != null and type.code !=''"> AND d.code = #{type.code} </if>