| | |
| | | package com.yeshi.fanli.service.inter.order;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.yeshi.fanli.dto.ChartTDO;
|
| | | import com.yeshi.fanli.dto.order.CountOrderDTO;
|
| | | import com.yeshi.fanli.entity.admin.count.CountOrderTrackRate;
|
| | |
|
| | | public interface CommonOrderCountService {
|
| | |
|
| | |
| | | */
|
| | | public Long countByState(Integer state);
|
| | |
|
| | | /**
|
| | | * 统计所有订单
|
| | | * |
| | | * @param channel
|
| | | * @return
|
| | | */
|
| | | public List<ChartTDO> getTrackAccuracyRate(Integer dateType, String year, String startTime, String endTime,
|
| | | int sourceType) throws Exception;
|
| | |
|
| | | /**
|
| | | * 统计总金额
|
| | |
| | | */
|
| | | List<Long> getSameGoodsOrderByUidAndHongBaoType(List<Integer> typeList, Long uid, int minSameGoodsOrderCount);
|
| | |
|
| | | /**
|
| | | * 统计日期内产生有效订单数量(返利 + 分享)
|
| | | * @param preDay
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public Integer countOderByUidAndDate(Date preDay, Long uid);
|
| | | |
| | | /**
|
| | | * 统计日期内产生有效订单数量(返利 + 分享) 多个uid
|
| | | * @param preDay
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | //public Integer countOrderByUidsAndDate(Date preDay, List<Long> list);
|
| | | /**
|
| | | * 统计再此时间内 产生订单的用户数量
|
| | | * @param preDay
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | public Integer countDownOrderUserByUidAndDate(Date preDay, List<Long> list);
|
| | |
|
| | | /**
|
| | | * 统计订单佣金
|
| | | * @param preDay
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<CountOrderDTO> countCommissionByDay(String preDay);
|
| | | |
| | | /**
|
| | | * 总订单数 每-天
|
| | | * @param preDay
|
| | | * @return
|
| | | */
|
| | | public Integer countOderByDate(String preDay);
|
| | |
|
| | | /**
|
| | | * 统计订单佣金
|
| | | * @param preDay
|
| | | * @return
|
| | | */
|
| | | public BigDecimal countCommissionByDate(String preDay);
|
| | |
|
| | | /**
|
| | | * 当日每个用户下单数量
|
| | | * @param preDay
|
| | | * @return
|
| | | */
|
| | | public List<CountOrderDTO> countValidOrderByDay(String preDay);
|
| | |
|
| | | /**
|
| | | * 统计跟踪率
|
| | | * @param type
|
| | | * @param startTime
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | public List<CountOrderTrackRate> getOrderTrackRate(int type, Date startTime, Date endTime);
|
| | |
|
| | | |
| | | }
|