1.java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where id = 2' at line 3
这是一个很蠢得报错
在mybatiss得xml文件中
<if test="status!= null and status !=''">status = #{status},</if>
我对其进行了空字符串判断实际上它是Integer类型
private Integer status;