admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java
@@ -4,7 +4,6 @@
import java.util.Date;
import java.util.List;
import com.yeshi.fanli.dto.ChartTDO;
import com.yeshi.fanli.vo.order.HongBaoV2VO;
public interface HongBaoV2CountService {
@@ -35,59 +34,6 @@
    */
   public Integer countNumberByUid(Long uid);
   /**
    * 统计总金额
    *
    * @param channel
    *            渠道
    * @param dateType
    *            日期格式 日-1 月-2 年-3
    * @param state
    *            状态
    * @param years
    *            年份
    * @param startTime
    *            开始时间
    * @param endTime
    *            结束时间
    * @return
    */
   public List<ChartTDO> countHongBaoMoney(String channel, Integer dateType, Integer state, String year,
         String startTime, String endTime) throws Exception;
   /**
    * 统计总金额
    *
    * @param channel
    *            渠道
    * @param dateType
    *            日期格式 日-1 月-2 年-3
    * @param state
    *            状态
    * @param years
    *            年份
    * @param startTime
    *            开始时间
    * @param endTime
    *            结束时间
    * @return
    */
   public List<ChartTDO> countHongBaoNum(String channel, Integer dateType, Integer state, String year,
         String startTime, String endTime) throws Exception;
   /**
    * 分类型订单数与比例
    *
    * @param dateType
    * @param type
    * @param year
    * @param startTime
    * @param endTime
    * @return
    * @throws Exception
    */
   public List<ChartTDO> getProportionByType(Integer dateType, Integer type, String year, String startTime,
         String endTime) throws Exception;
   /**
    * 统计提成订单数量
@@ -123,22 +69,6 @@
    */
   public Date getLastHongBaoTime(Long uid);
   public List<ChartTDO> count24HOderByChannel(String channel, Integer type, String years, String startTime,
         String endTime) throws Exception;
   /**
    * 统计所有类型订单数量
    *
    * @param dateType
    * @param type
    * @param year
    * @param startTime
    * @param endTime
    * @return
    * @throws Exception
    */
   public List<ChartTDO> countHongBaoType(Integer dateType, Integer type, String year, String startTime,
         String endTime) throws Exception;
   /**
    * 查询邀请=分享奖金
@@ -184,4 +114,116 @@
   public long countAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime);
   /**
    * 查询来源该下级成功分享 + 自购订单
    * @param uid
    * @param teamUid
    * @param endTime
    * @return
    */
   public BigDecimal getOrderRewardByTeamUid(Long uid, Long teamUid, Date endTime);
   /**
    * 统计该下级成功分享 + 自购订单
    * @param uid
    * @param teamUid 下级id
    * @return
    */
   public BigDecimal getOrderRewardByTeamUidTheMonth(Long uid, Long teamUid);
   /**
    * 自购返利到账金额
    * @param uid
    * @return
    */
   public BigDecimal getRewardMoneyBySelf(Long uid);
   /**
    * 分享奖励到账金额
    * @param uid
    * @return
    */
   public BigDecimal getRewardMoneyByShare(Long uid);
   /**
    * 下级产生奖励到账金额
    * @param uid
    * @return
    */
   public BigDecimal getRewardMoneyByInvite(Long uid);
   /**
    * 统计不同时间:奖励
    * @param uid
    * @param dateType
    * @param hbType
    * @return
    */
   public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource);
   /**
    * 统计红包个数
    * @param uid
    * @param type 红包类型
    * @return
    */
   public long getHongBaoCount(Long uid, Integer type);
   /**
    * 筛选结果页顶部统计
    * @param uid
    * @param dateType
    * @param hbType
    * @param orderState
    * @param orderNo
    * @param source
    * @param startTime
    * @param endTime
    * @return
    */
   public BigDecimal getRewardMoneyByToSearch(Long uid, Integer dateType, Integer hbType, Integer orderState, String orderNo,
          Integer moneyState, String startTime, String endTime, List<Integer> listSource);
   public Long countOrderByTypeAndDate(Integer orderType, String preDay);
   /**
    * 统计订单数量
    * @param uid
    * @param time 下单开始时间
    * @param payment 付款金额
    * @param type 订单类型
    * @return
    */
   public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment);
   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);
}