admin
2020-06-10 271ae63c20fcbe28d29c47f1881138ff6551a2a1
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,54 @@
    * @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
    * @return
    */
   public long countMyDirectOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type);
}