| | |
| | | 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.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
|
| | | import com.yeshi.fanli.exception.order.CommonOrderException;
|
| | | import com.yeshi.fanli.vo.order.CommonOrderVO;
|
| | |
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public Map<String, BigDecimal> countOrderByHongBaoType(Long uid, Integer day);
|
| | | public Map<String, BigDecimal> countHistoryOrder(Long uid, Integer day);
|
| | |
|
| | | /**
|
| | | * 统计订单
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countOrder(Long uid, Integer type, Integer isToday);
|
| | | public long countBonusOrderNumber(Long uid, Integer type, Integer isToday, String startTime, String endTime);
|
| | |
|
| | | /**
|
| | | * 统计订单
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public BigDecimal countOrderMoney(Long uid, Integer type, Integer isToday);
|
| | | public BigDecimal countBonusOrderMoney(Long uid, Integer type, Integer isToday, String startTime, String endTime);
|
| | |
|
| | | /**
|
| | | * 根据条件统计
|
| | |
| | | */
|
| | | public List<CommonOrder> listBySourceTypeAndOrderId(int sourceType, String orderId);
|
| | |
|
| | | /**
|
| | | * 缓存普通订单
|
| | | * |
| | | * @param taoBaoOrder
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public List<CommonOrder> addTaoBaoOrder(List<TaoBaoOrder> taoBaoOrder, Long uid) throws CommonOrderException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据用户ID,订单状态,结算时间统计订单数量
|
| | | * @param uid
|
| | | * @param state
|
| | | * @param minDate
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | long countByUidAndOrderStateWithOrderBalanceTime(Long uid, int state, Date minDate, Date maxDate);
|
| | |
|
| | | }
|