package com.yeshi.fanli.service.inter.count;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.dto.ChartTDO;
|
import com.yeshi.fanli.vo.order.HongBaoV2VO;
|
|
public interface HongBaoV2CountService {
|
|
/**
|
* 统计历史总到账金额
|
*
|
* @param uid
|
* @param state
|
* @return
|
*/
|
public BigDecimal countMoneyByUidAndState(Long uid, Integer state);
|
|
/**
|
* 统计历史红包数量
|
*
|
* @param uid
|
* @param state
|
* @return
|
*/
|
public Integer countNumberByUidAndState(Long uid, Integer state);
|
|
/**
|
* 统计用户红包数量
|
*
|
* @param uid
|
* @return
|
*/
|
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;
|
|
/**
|
* 统计提成订单数量
|
*
|
* @param uid
|
* @return
|
*/
|
public int getTotalTiChengCount(Long uid);
|
|
/**
|
* 统计未失效订单数量
|
*
|
* @param uid
|
* @param dateType
|
* @return
|
*/
|
public long countValidNumberByUid(Long uid, Integer dateType);
|
|
/**
|
* 统计未到账金额
|
*
|
* @param uid
|
* @param dateType
|
* @return
|
*/
|
public BigDecimal countWillGetMoneyByUid(Long uid);
|
|
/**
|
* 最后一次下单时间
|
*
|
* @param uid
|
* @return
|
*/
|
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;
|
|
/**
|
* 查询邀请=分享奖金
|
*
|
* @param start
|
* @param count
|
* @param date
|
* @return
|
*/
|
public List<HongBaoV2VO> listShareAndInviteMoney(long start, int count, String date);
|
|
/**
|
* 奖励券金额
|
*
|
* @return
|
*/
|
public BigDecimal countRebateCouponMoney();
|
|
/**
|
* 统计返利订单
|
* @param uid
|
* @return
|
*/
|
public long countRebateOrder(Long uid);
|
|
/**
|
* 统计分享+ 邀请订单
|
* @param uid
|
* @return
|
*/
|
public long countShareOrInviteOrder(Long uid);
|
|
/**
|
* 统计已到账
|
*
|
* @param uid
|
* @param typeList
|
* @param minGetTime
|
* @param maxGetTime
|
* @return
|
*/
|
public BigDecimal sumAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime);
|
|
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);
|
|
/**
|
* 统计下级上个有效订单
|
* @param uid
|
* @param teamUid 下级id
|
* @return
|
*/
|
public BigDecimal getShareRewardByTeamUidLastMonth(Long uid, Long teamUid);
|
|
}
|