mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
1.2.5版本临时分支
This commit is contained in:
parent
8c59c2dd84
commit
98c2379246
@ -105,7 +105,7 @@ class test {
|
|||||||
MPJLambdaWrapper<UserDO> wrapper = new MPJLambdaWrapper<UserDO>()
|
MPJLambdaWrapper<UserDO> wrapper = new MPJLambdaWrapper<UserDO>()
|
||||||
.selectAll(UserDO.class)
|
.selectAll(UserDO.class)
|
||||||
//一对多查询
|
//一对多查询
|
||||||
.selectCollection(AddressDO.class, UDTO::getAddressList)
|
.selectCollection(AddressDO.class, UesrDTO::getAddressList)
|
||||||
.leftJoin(AddressDO.class, AddressDO::getUserId, UserDO::getId);
|
.leftJoin(AddressDO.class, AddressDO::getUserId, UserDO::getId);
|
||||||
|
|
||||||
List<UserDTO> dtoList = userMapper.selectJoinList(UserDTO.class, wrapper);
|
List<UserDTO> dtoList = userMapper.selectJoinList(UserDTO.class, wrapper);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user