项目场景: 项目迁移原先sql没有问题,后面迁移到新的框架之后提示net.sf.jsqlparser.parser.ParseException: Encountered unexpected token 原因分析: mybatis-plus 对于多租户进行数据权限的过滤 解决方案: 在mapper接口调用sql 的方法上添加注解 //多租户过滤注解 @InterceptorIgnore(tenantLine = "1")