yujian
2019-11-26 2d3afb55aed07f9780ab46aefbdc7d520cdff576
fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java
@@ -19,6 +19,7 @@
import com.yeshi.fanli.dao.mybatis.taobao.TaoBaoOrderMapper;
import com.yeshi.fanli.dao.mybatis.taobao.TaoBaoWeiQuanOrderMapper;
import com.yeshi.fanli.dto.ChartTDO;
import com.yeshi.fanli.entity.bus.user.HongBaoV2;
import com.yeshi.fanli.service.inter.count.HongBaoV2CountService;
import com.yeshi.fanli.service.inter.order.CommonOrderService;
import com.yeshi.fanli.service.inter.user.UserInfoService;
@@ -297,4 +298,43 @@
      return hongBaoV2CountMapper.countAlreadyGetMoneyByUid(uid, typeList, minGetTime, maxGetTime);
   }
   @Override
   public BigDecimal getOrderRewardByTeamUid(Long uid, Long teamUid, Date endTime) {
      return hongBaoV2CountMapper.getOrderRewardByTeamUid(uid, teamUid, endTime);
   }
   @Override
   public BigDecimal getOrderRewardByTeamUidTheMonth(Long uid, Long teamUid) {
      return hongBaoV2CountMapper.getOrderRewardByTeamUidTheMonth(uid, teamUid);
   }
   @Override
   public BigDecimal getRewardMoneyBySelf(Long uid) {
      List<Integer> list = new ArrayList<Integer>();
      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, String date, BigDecimal payment) {
      return hongBaoV2CountMapper.countValidOrderTeamUserByUid(uid, date, payment);
   }
}