1、问题描述
Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM xxx AS l INNER JOIN xxxAS f INNER JOIN xxx ON f.xxx_id = r.id AND f.id = l.xx_id AND r.xx_id IN (?)
2、问题解决
意思就是使用MybatisPlus 分页的时候出现了错误,通过排查 我发现是在 in(?) 哪里,mapper里面的传参数没有判断是否为空所以导致查询错误抛出异常