问题描述 在执行sql的时候发现state这个值没有拼接到sql里面去,明明<if test=“curingPlanInfoSearchDto.state != null and curingPlanInfoSearchDto.state != ‘’”>判断是成立的,但是就是无法拼接进去,也打印了对象,发现state确实有数据,也为0。 实体类 sql语句 问题解决 只需要把curingPlanInfoSearchDto.state != ''去掉即可