From 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 09 五月 2020 21:41:27 +0800 Subject: [PATCH] 2.1需求 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 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 e1b83e7..37174a6 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 @@ -261,7 +261,7 @@ if (list == null) { list = new ArrayList<ThreeSale>(); } - long countTotal = threeSaleMapper.countFirstTeam(uid); + long countTotal = threeSaleMapper.countFirstTeam(uid, null); return organizeTeam(countTotal, list); } @@ -271,7 +271,7 @@ if (list == null) { list = new ArrayList<ThreeSale>(); } - long countTotal = threeSaleMapper.countSecondTeam(uid); + long countTotal = threeSaleMapper.countSecondTeam(uid, null); return organizeTeam(countTotal, list); } @@ -508,18 +508,39 @@ return threeSaleMapper.listSecondTeam(start, count, uid, listId); } - @Override public long countFirstTeam(Long uid) { - return threeSaleMapper.countFirstTeam(uid); + return threeSaleMapper.countFirstTeam(uid, null); } @Override public long countSecondTeam(Long uid) { - return threeSaleMapper.countSecondTeam(uid); + return threeSaleMapper.countSecondTeam(uid, null); + } + + @Override + public long countFirstTeam(Long uid, List<Long> listId) { + return threeSaleMapper.countFirstTeam(uid, listId); } @Override + public long countSecondTeam(Long uid, List<Long> listId) { + return threeSaleMapper.countSecondTeam(uid, listId); + } + + @Override + public long countFirstTeamByDate(Long uid, int dayType) { + return threeSaleMapper.countFirstTeamByDate(uid, dayType); + } + + @Override + public long countSecondTeamByDate(Long uid, int dayType) { + return threeSaleMapper.countSecondTeamByDate(uid, dayType); + } + + + + @Override public ThreeSale selectLatestByWorkerIdAndState(Long workerId, int state) { return threeSaleMapper.selectLatestByWorkerIdAndState(workerId, state); } -- Gitblit v1.8.0