From ad1c19461fee4c7c4a26795bef75d26f9738faf1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 03 十二月 2019 12:26:05 +0800 Subject: [PATCH] 多图分享修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 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 9e860d2..0b0dfc0 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 @@ -238,6 +238,11 @@ public int getTotalTiChengCount(Long uid) { return hongBaoV2CountMapper.getTotalTiChengCount(uid); } + + @Override + public long getHongBaoCount(Long uid,Integer type) { + return hongBaoV2CountMapper.getHongBaoCount(uid, type); + } @Override public long countValidNumberByUid(Long uid, Integer dateType) { @@ -311,7 +316,36 @@ @Override public BigDecimal getRewardMoneyBySelf(Long uid) { List<Integer> list = new ArrayList<Integer>(); - list.add(HongBaoV2.STATE_YILINGQU); + list.add(HongBaoV2.TYPE_ZIGOU); return hongBaoV2CountMapper.getRewardMoneyByUid(uid, list); } + + @Override + public BigDecimal getRewardMoneyByShare(Long uid) { + List<Integer> list = new ArrayList<Integer>(); + list.add(HongBaoV2.TYPE_SHARE_GOODS); + return hongBaoV2CountMapper.getRewardMoneyByUid(uid, list); + } + + + @Override + public BigDecimal getRewardMoneyByInvite(Long uid) { + List<Integer> list = new ArrayList<Integer>(); + list.add(HongBaoV2.TYPE_YIJI); + list.add(HongBaoV2.TYPE_ERJI); + list.add(HongBaoV2.TYPE_SHARE_YIJI); + list.add(HongBaoV2.TYPE_SHARE_ERJI); + return hongBaoV2CountMapper.getRewardMoneyByUid(uid, list); + } + + @Override + public long countValidOrderTeamUserByUid(Long uid, Long time, BigDecimal payment) { + return hongBaoV2CountMapper.countValidOrderTeamUserByUid(uid, time, payment); + } + + @Override + public BigDecimal getRewardMoneyByDate(Long uid, Integer dateType, Integer hbType, Integer orderState) { + return hongBaoV2CountMapper.getRewardMoneyByDate(uid, dateType, hbType, orderState); + } + } -- Gitblit v1.8.0