当前使用版本
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.3.1</version>
</dependency>
重现步骤
在某ServiceImpl中:
this.getOne(ChainWrappers.lambdaQueryChain(xxMapper))报错
但this.getOne(Wrappers.<>lambdaQuery())可以正常运行
报错信息
nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew != null and ew.sqlFirst != null'. Cause: org.apache.ibatis.ognl.OgnlException: sqlFirst [com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: can not use this method for \"getSqlFirst\"]
Comment From: miemieYaho
ChainWrappers.lambdaQueryChain(xxMapper).one()