admin
2019-12-03 ad1c19461fee4c7c4a26795bef75d26f9738faf1
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);
   }
}