mybatis中 <if test="data !='' and null != data">判断,如果传入的参数为Integer类型该数据会被当成空值,判断失败。
解决,参数为String类型则不会存在这种问题,或把判断改为<if test="null != data">问题解决
mybatis中 <if test="data !='' and null != data">判断,如果传入的参数为Integer类型该数据会被当成空值,判断失败。
解决,参数为String类型则不会存在这种问题,或把判断改为<if test="null != data">问题解决