yujian
2020-06-29 f94a5a1d3fe9bde0e599d41f2d97caea1b08a88d
fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java
@@ -11,7 +11,10 @@
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.entity.order.ESOrder;
import com.yeshi.fanli.entity.pdd.PDDOrder;
import com.yeshi.fanli.entity.suning.SuningOrderInfo;
import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder;
import com.yeshi.fanli.entity.vipshop.VipShopOrder;
import com.yeshi.fanli.exception.order.CommonOrderException;
import com.yeshi.fanli.vo.order.CommonOrderVO;
import com.yeshi.fanli.vo.order.OrderCountVO;
@@ -19,6 +22,7 @@
import net.sf.json.JSONObject;
public interface CommonOrderService {
   public int insert(CommonOrder record);
@@ -172,6 +176,36 @@
    * @throws CommonOrderException
    */
   public List<CommonOrderAddResultDTO> addJDOrder(JDOrder jdOrder, Long uid) throws CommonOrderException;
   /**
    * 添加唯品会订单
    * @Title: addVipShopOrder
    * @Description:
    * @param order
    * @param uid
    * @return
    * @throws CommonOrderException
    * List<CommonOrderAddResultDTO> 返回类型
    * @throws
    */
   public List<CommonOrderAddResultDTO> addVipShopOrder(VipShopOrder order, Long uid) throws CommonOrderException;
   /**
    * 添加苏宁订单
    * @Title: addVipShopOrder
    * @Description:
    * @param order
    * @param uid
    * @return
    * @throws CommonOrderException
    * List<CommonOrderAddResultDTO> 返回类型
    * @throws
    */
   public List<CommonOrderAddResultDTO> addSuningOrder(List<SuningOrderInfo> suningOrderList, Long uid) throws CommonOrderException;
   /**
    * 根据用户ID,订单状态,结算时间统计订单数量
@@ -388,4 +422,71 @@
    */
   public Date getThirdCreateTime(String orderId,int sourceType);
   public List<CommonOrder> getMinSettleTimeAndUid();
   /**
    * 新版红包信息2.1
    * @param acceptData
    * @param page
    * @param uid
    * @param state
    * @param type
    * @param orderState
    * @param orderNo
    * @param startTime
    * @param endTime
    * @param dateType
    * @param listSource
    * @return
    * @throws CommonOrderException
    * @throws Exception
    */
   public List<CommonOrderVO> getOrderList(AcceptData acceptData, Integer page, Long uid, Integer state, Integer type,
         Integer orderState, String orderNo, String startTime, String endTime, Integer dateType,
         List<Integer> listSource) throws CommonOrderException, Exception;
   long countOrderList(Long uid, Integer state, Integer type, Integer orderState, String orderNo, String startTime,
         String endTime, Integer dateType, List<Integer> listSource);
   /**
    * 维权金额计算
    * @param listWQ
    * @param sourceType
    * @param uid
    * @return
    */
   public BigDecimal getWeiQuanMoney(List<TaoBaoWeiQuanOrder> listWQ, int sourceType, Long uid);
   /**
    * 统计订单记录数量-非订单号为主
    * @param uid
    * @param payment
    * @return
    */
   public long countOrderByUidAndSettled(Long uid, BigDecimal payment);
   /**
    * 获取最新的淘宝订单号
    * @return
    */
   public String getNewestOrderNoByTaoBao();
   /**
    * 根据订单号查询
    * @param orderNo
    * @return
    */
   public List<CommonOrder> listByOrderNo(String orderNo);
   /**
    * 根据订单类型+ 订单号查询
    * @param uid
    * @param orderNO
    * @param sourceType
    * @return
    */
   public List<CommonOrder> getByOrderNoAndSourceType(Long uid, String orderNO, int sourceType);
}