| | |
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dto.ChartTDO;
|
| | | import com.yeshi.fanli.vo.order.HongBaoV2VO;
|
| | |
|
| | | public interface HongBaoV2CountService {
|
| | |
| | | */
|
| | | 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;
|
| | |
|
| | | /**
|
| | | * 统计提成订单数量
|
| | |
| | | */
|
| | | 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;
|
| | |
|
| | | /**
|
| | | * 查询邀请=分享奖金
|
| | |
| | | */
|
| | | public BigDecimal getRewardMoneyByInvite(Long uid);
|
| | |
|
| | | /**
|
| | | * 有效一级队员定义:2019年1月1日起(date),自购或分享1笔且付款总金额不小于 payment 元(退款为失效
|
| | | * @param uid
|
| | | * @param date
|
| | | * @param payment
|
| | | * @return
|
| | | */
|
| | | public long countValidOrderTeamUserByUid(Long uid, Long time, BigDecimal payment);
|
| | |
|
| | | /**
|
| | | * 统计不同时间:奖励
|
| | |
| | | * @param hbType
|
| | | * @return
|
| | | */
|
| | | public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType);
|
| | | public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource);
|
| | |
|
| | | /**
|
| | | * 统计红包个数
|
| | |
| | | * @return
|
| | | */
|
| | | public BigDecimal getRewardMoneyByToSearch(Long uid, Integer dateType, Integer hbType, Integer orderState, String orderNo,
|
| | | Integer source, String startTime, String endTime); |
| | | 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); |
| | |
|
| | | }
|