mybatis 查询报错:SQLException: 无效的列类型: 1111

Mybatis 查询报错java.sql.SQLException: 无效的列类型: 1111

出现这个问题不要慌,根据报错日志定位到出错的查询语句,由于粗心,没有将查询条件添加"判空"条件

将查询语句添加判空,就好好

<if test="type !=null and type !=''"> and type=#{
    
    type}</if>

猜你喜欢

转载自blog.csdn.net/u013478983/article/details/113736000