yujian
2020-06-29 ec60e757d358636dcac1589c44a66f3e276fe58c
fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java
@@ -7,6 +7,8 @@
import com.yeshi.fanli.vo.order.HongBaoV2VO;
public interface HongBaoV2CountService {
   /**
    * 统计历史总到账金额
@@ -152,14 +154,6 @@
    */
   public BigDecimal getRewardMoneyByInvite(Long uid);
   /**
    * 有效一级队员定义:2019年1月1日起(date),自购或分享1笔且付款总金额不小于 payment 元(退款为失效
    * @param uid
    * @param date
    * @param payment
    * @return
    */
   public long countValidOrderByUidAndTime(Long uid, Long time, BigDecimal payment);
   /**
    * 统计不同时间:奖励
@@ -204,17 +198,67 @@
    * @param type 订单类型
    * @return
    */
   public long counOrderByUidAndOrderType(Long uid, BigDecimal payment, int type);
   public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment);
   /**
    * 统计已结算
    * 统计订单数量
    * @param uid
    * @param time
    * @param payment
    * @param time 下单开始时间
    * @param payment 付款金额
    * @param type 订单类型  1自购 2分享
    * @return
    */
   public long countOrderByUidAndSettled(Long uid, Long time, BigDecimal payment);
   public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment, Integer type);
   public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState);
   public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState);
   /**
    * 统计近日到账收入金额
    * @param uid
    * @param day
    * @return
    */
   public BigDecimal sumMoneyArrivalByUidAndNearDay(Long uid, int day);
   /**
    * 统计收货金额
    * @param uid
    * @param minDate
    * @param maxDate
    * @return
    */
   public BigDecimal sumMoneyBySettleTimeAndUid(Long uid, Date minDate, Date maxDate);
   /**
    * 180天内未收货的金额
    * @param uid
    * @return
    */
   public BigDecimal sumMoneyByANotSettleAndUid(Long uid);
   /**
    * 统计已到账订单数量
    * @param uid
    * @param payment -付款金额
    * @param type -类型: 1自购 2分享 3邀请  4自购+分享
    * @param dateType 1本月
    * @return
    */
   public long countOrderByCashArrival(Long uid, BigDecimal payment, Integer type, Integer dateType);
   /**
    * 统计未到账订单数量
    * @param uid
    * @param payment -付款金额
    * @param type -类型: 1自购 2分享 3邀请  4自购+分享
    * @param dateType 1本月
    * @return
    */
   public long countOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type, Integer dateType);
}