From 5c03e2dd5afd65c483ef5da8346e78abc29dc7e3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 01 四月 2020 14:39:54 +0800 Subject: [PATCH] 新增淘客接口,订单返利比例计算相关service修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java index 9cecfe1..506e1d1 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java @@ -631,10 +631,23 @@ return threeSaleMapper.getTeamOrderNumByWorkerId(workerId); } - @Override public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime) { return threeSaleMapper.getValidWorkerIdsByTime(bossId, limitTime); } + @Override + public List<ThreeSale> getMyBossDeepList(Long uid, int deep) { + + List<ThreeSale> deepList = new ArrayList<>(); + ThreeSale boss = getMyBoss(uid); + while (deep > 0 && boss != null) { + deep--; + deepList.add(boss); + boss = getMyBoss(boss.getBoss().getId()); + } + + return deepList; + } + } -- Gitblit v1.8.0