MyBatisPlus listObjs 查询某个字段集合

LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper();
queryWrapper.select(Entity::getId);
Function f = (o -> o.toString());
List ids = entityService.listObjs(queryWrapper, f);

你可能感兴趣的:(mybatis)