使用自定义之后老是有语法错误
按照你说的方法Where后面老是有一对括号
@Select("sele * from user ${ew.customSqlSegment}") List<User> selectAll(@Param(Constants.WRAPPER) Wrapper<User> queryWrapper);
LambdaQueryWrapper<User> lambdaQueryWrapper = Wrappers.<User>lambdaQuery(); lambdaQueryWrapper.like(User::getName,"雨"); List<User> users = userMapper.selectAll(lambdaQueryWrapper);
实际的请求SQL:sele * from user WHERE (name LIKE ?)