| | |
| | |
|
| | | public long countAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime);
|
| | |
|
| | | /**
|
| | | * 查询来源该下级成功分享奖金活动
|
| | | /** |
| | | * 查询来源该下级成功分享 + 自购订单 |
| | | * @param uid
|
| | | * @param teamUid
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | public BigDecimal getShareRewardByTeamUid(Long uid, Long teamUid, Date endTime);
|
| | | public BigDecimal getOrderRewardByTeamUid(Long uid, Long teamUid, Date endTime);
|
| | |
|
| | | /**
|
| | | * 统计下级上个有效订单
|
| | | * 统计该下级成功分享 + 自购订单 |
| | | * @param uid
|
| | | * @param teamUid 下级id
|
| | | * @return
|
| | | */
|
| | | public BigDecimal getShareRewardByTeamUidLastMonth(Long uid, Long teamUid);
|
| | | 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);
|
| | |
|
| | | /**
|
| | | * 有效一级队员定义:2019年1月1日起(date),自购或分享1笔且付款总金额不小于 payment 元(退款为失效
|
| | | * @param uid
|
| | | * @param date
|
| | | * @param payment
|
| | | * @return
|
| | | */
|
| | | public long countValidOrderByUidAndTime(Long uid, Long time, BigDecimal payment);
|
| | |
|
| | | /**
|
| | | * 统计不同时间:奖励
|
| | | * @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 counOrderByUidAndOrderType(Long uid, BigDecimal payment, int type);
|
| | |
|
| | | /**
|
| | | * 统计已结算
|
| | | * @param uid
|
| | | * @param time
|
| | | * @param payment
|
| | | * @return
|
| | | */
|
| | | public long countOrderByUidAndSettled(Long uid, Long time, BigDecimal payment);
|
| | |
|
| | | public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState); |
| | |
|
| | | }
|