yujian
2019-07-30 c6f32fd5fd0cf1cf0758765a697c9e9ad5bbba13
fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java
@@ -5,6 +5,7 @@
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.entity.accept.AcceptData;
import com.yeshi.fanli.entity.jd.JDOrder;
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.entity.pdd.PDDOrder;
@@ -46,7 +47,7 @@
    * @throws CommonOrderException
    */
   public List<CommonOrderVO> listGroupOrderNoByUid(long start, int count, Long uid, Integer state, Integer type,
         Integer orderState, String orderNo, String startTime, String endTime, Integer dateType)
         Integer orderState, String orderNo, String startTime, String endTime, Integer dateType, Integer source)
         throws CommonOrderException;
   /**
@@ -62,7 +63,7 @@
    * @throws CommonOrderException
    */
   long countGroupOrderNoByUid(Long uid, Integer state, Integer type, Integer orderState, String orderNo,
         String startTime, String endTime, Integer dateType) throws CommonOrderException;
         String startTime, String endTime, Integer dateType, Integer source) throws CommonOrderException;
   /**
    * 移动段订单列表
@@ -75,8 +76,8 @@
    *            到账状态
    * @return
    */
   public List<CommonOrderVO> getOrderByUid(Integer page, Long uid, Integer state, Integer type, Integer orderState,
         String orderNo, String startTime, String endTime, Integer dateType) throws CommonOrderException;
   public List<CommonOrderVO> getOrderByUid(AcceptData acceptData, Integer page, Long uid, Integer state, Integer type, Integer orderState,
         String orderNo, String startTime, String endTime, Integer dateType, Integer source) throws CommonOrderException;
   /**
    * 统计订单-根据红包类型 自购 邀请 分享
@@ -84,7 +85,7 @@
    * @param uid
    * @return
    */
   public Map<String, BigDecimal> countHistoryOrder(Long uid, Integer day);
   public Map<String, BigDecimal> countHistoryOrder(Long uid, Integer day, Integer source);
   /**
    * 统计订单
@@ -92,7 +93,7 @@
    * @param uid
    * @return
    */
   public long countBonusOrderNumber(Long uid, Integer type, Integer isToday, String startTime, String endTime);
   public long countBonusOrderNumber(Long uid, Integer type, Integer isToday, String startTime, String endTime, Integer source);
   /**
    * 统计订单
@@ -100,7 +101,7 @@
    * @param uid
    * @return
    */
   public BigDecimal countBonusOrderMoney(Long uid, Integer type, Integer isToday, String startTime, String endTime);
   public BigDecimal countBonusOrderMoney(Long uid, Integer type, Integer isToday, String startTime, String endTime, Integer source);
   /**
    * 统计奖金订单数量、金额
@@ -125,7 +126,7 @@
    * @return
    */
   public Map<String, BigDecimal> countByUidAndOrderState(Long uid, Integer type, String startTime, String endTime,
         Integer day);
         Integer day, Integer source);
   /**
    * 根据订单号与订单类型查询订单
@@ -218,31 +219,11 @@
    */
   public List<CommonOrderVO> listQuery(long start, int count, Integer keyType, String key, Integer state,
         Integer type, Integer orderState, String startTime, String endTime) throws CommonOrderException;
         Integer type, Integer orderState, String startTime, String endTime, Integer source) throws CommonOrderException;
   public long countQuery(Integer keyType, String key, Integer state, Integer type, Integer orderState,
         String startTime, String endTime) throws CommonOrderException;
         String startTime, String endTime, Integer source) throws CommonOrderException;
   /**
    * 根据订单号获取信息
    *
    * @param orderNo
    * @return
    * @throws CommonOrderException
    */
   public CommonOrderVO getInfoByOrderNo(Long uid, String orderNo) throws CommonOrderException;
   /**
    * 查询券奖励金额以及订单信息
    *
    * @param uid
    * @param state
    * @param orderNo
    * @return
    * @throws CommonOrderException
    */
   public List<CommonOrderVO> getCouponHongbaoByOrderNo(Long uid, Integer state, String orderNo)
         throws CommonOrderException;
   /**
    * 查询订单
@@ -252,7 +233,7 @@
    * @return
    * @throws CommonOrderException
    */
   public CommonOrderVO getCommonOrderByOrderNo(Long uid, String orderNo, Integer orderState)
   public CommonOrderVO getCommonOrderByOrderNo(Long uid, String orderNo, Integer orderState, Integer sourceType)
         throws CommonOrderException;
   /**
@@ -288,4 +269,18 @@
    */
   public List<CommonOrder> listBySourceTypeAndTradeId(int sourceType, String tradeId);
   /**
    * 根据条件查询订单
    *
    * @param sourceType
    * @param state
    * @param minTime
    * @param maxTime
    * @param page
    * @param pageSize
    * @return
    */
   List<CommonOrder> listBySourceTypeAndStateAndThirdCrateTime(int sourceType, Integer state, Long minTime,
         Long maxTime, int page, int pageSize);
}