From 28cf328a098334b51a3e9d2d56f983fb8c862211 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 23 五月 2020 09:54:38 +0800 Subject: [PATCH] 足迹、收藏订单兼容新需求 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/invite/ThreeSaleSerivceImpl.java | 63 ++++++++++++++++++++++++++----- 1 files changed, 53 insertions(+), 10 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 668c9ce..b8c591e 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 @@ -257,21 +257,21 @@ @Override public JSONObject getMyFirstTeam(long start, int count, Long uid) { - List<ThreeSale> list = threeSaleMapper.listFirstTeam(start, count, uid); + List<ThreeSale> list = threeSaleMapper.listFirstTeam(start, count, uid, null); if (list == null) { list = new ArrayList<ThreeSale>(); } - long countTotal = threeSaleMapper.countFirstTeam(uid); + long countTotal = threeSaleMapper.countFirstTeam(uid, null); return organizeTeam(countTotal, list); } @Override public JSONObject getMySecondTeam(long start, int count, Long uid) { - List<ThreeSale> list = threeSaleMapper.listSecondTeam(start, count, uid); + List<ThreeSale> list = threeSaleMapper.listSecondTeam(start, count, uid, null); if (list == null) { list = new ArrayList<ThreeSale>(); } - long countTotal = threeSaleMapper.countSecondTeam(uid); + long countTotal = threeSaleMapper.countSecondTeam(uid, null); return organizeTeam(countTotal, list); } @@ -490,22 +490,52 @@ @Override public List<ThreeSale> listFirstTeam(long start, int count, Long uid) { - return threeSaleMapper.listFirstTeam(start, count, uid); + return threeSaleMapper.listFirstTeam(start, count, uid, null); } @Override public List<ThreeSale> listSecondTeam(long start, int count, Long uid) { - return threeSaleMapper.listSecondTeam(start, count, uid); + return threeSaleMapper.listSecondTeam(start, count, uid, null); + } + + @Override + public List<ThreeSale> listFirstTeam(long start, int count, Long uid, List<Long> listId) { + return threeSaleMapper.listFirstTeam(start, count, uid, listId); + } + + @Override + public List<ThreeSale> listSecondTeam(long start, int count, Long uid, List<Long> listId) { + 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 @@ -565,8 +595,21 @@ } @Override - public List<ThreeSale> listAll(int page, int pageSize) { - return threeSaleMapper.listAll((page-1)*pageSize, pageSize); + public List<ThreeSale> listAll(Date minTime, Date maxTime, int page, int pageSize) { + return threeSaleMapper.listAll(minTime == null ? null : minTime.getTime(), + maxTime == null ? null : maxTime.getTime(), (page - 1) * pageSize, pageSize); + } + + @Override + public long countAll(Date minTime, Date maxTime) { + return threeSaleMapper.countAll(minTime == null ? null : minTime.getTime(), + maxTime == null ? null : maxTime.getTime()); + } + + + @Override + public List<Long> getAllBossId(){ + return threeSaleMapper.getAllBossId(); } } -- Gitblit v1.8.0