mybatis-plus查询指定字段

种瓜得豆 / 2023-09-12 / 原文

//3.x版本之后使用
mapper.selectList(Wrappers.<User>lambdaQuery().select(User::getId, User::getName));