|
@@ -80,16 +80,6 @@ public class SharePathServiceImpl implements SharePathService {
|
|
|
@Resource
|
|
|
private OrderPercentageService orderPercentageService;
|
|
|
|
|
|
- @Override
|
|
|
- public Long createSharePath(SharePathSaveReqVO createReqVO) {
|
|
|
- // 插入
|
|
|
- SharePathDO sharePath = BeanUtils.toBean(createReqVO, SharePathDO.class);
|
|
|
- sharePathMapper.insert(sharePath);
|
|
|
- // 返回
|
|
|
- return sharePath.getId();
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
@Override
|
|
|
public void createSharePathByUserId(SharePathSaveReqVO createReqVO) {
|
|
|
|
|
@@ -219,12 +209,11 @@ public class SharePathServiceImpl implements SharePathService {
|
|
|
// 整合结构
|
|
|
List<TreeNode> treeNodes = listWithTree(deep, userId);
|
|
|
|
|
|
- TreeNode build = TreeNode.builder()
|
|
|
+ return TreeNode.builder()
|
|
|
.phone(sharePathDO.getMobile())
|
|
|
.name(sharePathDO.getName())
|
|
|
.nickname(sharePathDO.getNickName())
|
|
|
.children(treeNodes).build();
|
|
|
- return build;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -495,9 +484,7 @@ public class SharePathServiceImpl implements SharePathService {
|
|
|
PageResult<SharePathDO> sharePathDOPageResult = sharePathMapper.selectDescendantsPage(pageReqVO);
|
|
|
PageResult<SharePathRespVO> result = BeanUtils.toBean(sharePathDOPageResult, SharePathRespVO.class);
|
|
|
List<SharePathRespVO> list = result.getList();
|
|
|
- list.forEach(sharePath -> {
|
|
|
- sharePath.setAvatar(memberUserService.getUser(sharePath.getDescendant()).getAvatar());
|
|
|
- });
|
|
|
+ list.forEach(sharePath -> sharePath.setAvatar(memberUserService.getUser(sharePath.getDescendant()).getAvatar()));
|
|
|
return result;
|
|
|
}
|
|
|
|