利用and拼接,尽量与其他公共条件分开写
//根据id和name或者enName查询用户
LambdaQueryWrapper<User> lqw = new LambdaQueryWrapper<User>.in(User::getId, ids);
lqw.and(lambdaQueryWrapper -> lambdaQueryWrapper.like(User::getName, name).or().like(User::getEnName, name));
return userService.list(lqw);