From 3e4ef41ffacd7f5fda2e81c3810cd11a6375b83c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 15 六月 2020 16:32:35 +0800 Subject: [PATCH] 好单库转链支持 --- fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java index 8704f84..4d111e5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java @@ -17,6 +17,8 @@ @Service public class HongBaoV2CountServiceImpl implements HongBaoV2CountService { + + @Resource private HongBaoV2CountMapper hongBaoV2CountMapper; @@ -140,7 +142,7 @@ @Override public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment) { - Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment); + Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment, null); if (count == null) { count = 0L; } @@ -149,6 +151,24 @@ @Override + public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment, Integer type) { + Long count = hongBaoV2CountMapper.countMyDirectOrderByCashArrival(uid, payment, type); + if (count == null) { + count = 0L; + } + return count; + } + + @Override + public long countMyDirectOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type) { + Long count = hongBaoV2CountMapper.countMyDirectOrderByCashNotArrival(uid, payment, type); + if (count == null) { + count = 0L; + } + return count; + } + + @Override public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource) { BigDecimal money = hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, null, null, null, listSource); if (money == null) @@ -156,6 +176,7 @@ return money; } + @Override public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState) { BigDecimal money = hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, null, null, moneyState, null, null, null); -- Gitblit v1.8.0