| | |
| | | package com.yeshi.fanli.service.inter.order;
|
| | |
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.jd.JDOrder;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.entity.pdd.PDDOrder;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder;
|
| | | import com.yeshi.fanli.exception.order.HongBaoException;
|
| | | import com.yeshi.fanli.exception.order.OrderItemException;
|
| | | import com.yeshi.fanli.exception.order.TaoBaoWeiQuanException;
|
| | |
|
| | | /**
|
| | | * 订单处理服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface OrderProcessService {
|
| | | /**
|
| | | * 处理订单
|
| | | * |
| | | * @param orders
|
| | | */
|
| | | public void processOrder(Map<String, List<TaoBaoOrder>> orders);
|
| | |
|
| | | /**
|
| | | * 处理购物返利订单(包含分销订单)
|
| | | *
|
| | | */
|
| | | public void processShopingFanliOrder(Map<String, List<TaoBaoOrder>> orders);
|
| | |
|
| | | /**
|
| | | * 处理分享商品订单
|
| | | */
|
| | | public void processShareGoodsOrder(Map<String, List<TaoBaoOrder>> orders);
|
| | |
|
| | | public void processShopingFanliOrderNew(String orderId, List<TaoBaoOrder> orderList)
|
| | | throws HongBaoException, OrderItemException;
|
| | |
|
| | | /**
|
| | | * 处理分享商品订单
|
| | | */
|
| | | public void processShareGoodsOrderNew(String orderId, List<TaoBaoOrder> orderList);
|
| | |
|
| | | /**
|
| | | * 处理返利
|
| | | */
|
| | | public void fanli();
|
| | |
|
| | | /**
|
| | | * 购物返利
|
| | | * |
| | | * @param hongBao
|
| | | * type=1的主红包
|
| | | * @throws TaoBaoWeiQuanException
|
| | | */
|
| | | public void fanli(HongBaoV2 hongBao) throws TaoBaoWeiQuanException;
|
| | |
|
| | | /**
|
| | | * 邀请赚返利
|
| | | * |
| | | * @param hongBao
|
| | | * type=1且有子红包的主红包
|
| | | * |
| | | */
|
| | | public void fanliInvaiteAndShare();
|
| | |
|
| | | /**
|
| | | * 分享赚与邀请赚返利
|
| | | */
|
| | | public void fanliInvaiteAndShare(Long uid) throws TaoBaoWeiQuanException;
|
| | |
|
| | | /**
|
| | | * 订单维权
|
| | | * |
| | | * @param orderList
|
| | | */
|
| | |
|
| | | public void weiQuanOrder(List<TaoBaoWeiQuanOrder> orderList);
|
| | |
|
| | | /**
|
| | | * 单个订单维权
|
| | | * |
| | | * @param order
|
| | | */
|
| | | public void weiQuanOrder(TaoBaoWeiQuanOrder order);
|
| | |
|
| | | /**
|
| | | * 处理京东订单
|
| | | * |
| | | * @param order
|
| | | */
|
| | | public void processJDOrder(JDOrder order);
|
| | |
|
| | | /**
|
| | | * 处理拼多多订单
|
| | | * |
| | | * @param pddOrder
|
| | | */
|
| | | public void processPDDOrder(PDDOrder pddOrder);
|
| | |
|
| | | /**
|
| | | * 根据淘宝订单的排序值修复常规订单的排序值
|
| | | * |
| | | * @param orderId
|
| | | */
|
| | | public void repairCommonOrderByByTaoBaoOrder(String orderId);
|
| | |
|
| | | /**
|
| | | * 是否是分享赚订单
|
| | | * |
| | | * @param commonOrder
|
| | | * @return
|
| | | */
|
| | | public boolean isShareOrder(CommonOrder commonOrder);
|
| | |
|
| | | /**
|
| | | * 处理淘宝商家未付款的情况
|
| | | */
|
| | | public void doTaoBaoSellerNotPaid(TaoBaoOrder order);
|
| | |
|
| | | /**
|
| | | * 获取可以返利的饿了么红包
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoV2> getCanBalanceElmeFanliHongBao();
|
| | |
|
| | | /**
|
| | | * 饿了么返利
|
| | | * @param hongBaoId
|
| | | */
|
| | | public void elmeFanli(Long hongBaoId);
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.order; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2; |
| | | import com.yeshi.fanli.entity.dy.DYOrder; |
| | | import com.yeshi.fanli.entity.jd.JDOrder; |
| | | import com.yeshi.fanli.entity.order.CommonOrder; |
| | | 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.HongBaoException; |
| | | import com.yeshi.fanli.exception.order.OrderItemException; |
| | | import com.yeshi.fanli.exception.order.TaoBaoWeiQuanException; |
| | | |
| | | /** |
| | | * 订单处理服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface OrderProcessService { |
| | | /** |
| | | * 处理订单 |
| | | * |
| | | * @param orders |
| | | */ |
| | | public void processOrder(Map<String, List<TaoBaoOrder>> orders); |
| | | |
| | | /** |
| | | * 处理购物返利订单(包含分销订单) |
| | | * |
| | | */ |
| | | public void processShopingFanliOrder(Map<String, List<TaoBaoOrder>> orders); |
| | | |
| | | /** |
| | | * 处理分享商品订单 |
| | | */ |
| | | public void processShareGoodsOrder(Map<String, List<TaoBaoOrder>> orders); |
| | | |
| | | public void processShopingFanliOrderNew(String orderId, List<TaoBaoOrder> orderList) |
| | | throws HongBaoException, OrderItemException; |
| | | |
| | | /** |
| | | * 处理分享商品订单 |
| | | */ |
| | | public void processShareGoodsOrderNew(String orderId, List<TaoBaoOrder> orderList); |
| | | |
| | | /** |
| | | * 处理返利 |
| | | */ |
| | | public void fanli(); |
| | | |
| | | /** |
| | | * 购物返利 |
| | | * |
| | | * @param hongBao |
| | | * type=1的主红包 |
| | | * @throws TaoBaoWeiQuanException |
| | | */ |
| | | public void fanli(HongBaoV2 hongBao) throws TaoBaoWeiQuanException; |
| | | |
| | | |
| | | public void fanliPreInvaite(Date maxTime); |
| | | |
| | | public int fanliShare(Date maxTime); |
| | | |
| | | /** |
| | | * 结算团队奖金+补贴 |
| | | * @Title: fanliInvaite |
| | | * @Description: |
| | | * @param maxPreGetTime |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | |
| | | public void fanliPreInvaite(Long uid, Date maxPreGetTime); |
| | | |
| | | |
| | | public void fanliShare(Long uid, Date maxPreGetTime); |
| | | |
| | | /** |
| | | * 订单维权 |
| | | * |
| | | * @param orderList |
| | | */ |
| | | |
| | | public void weiQuanOrder(List<TaoBaoWeiQuanOrder> orderList); |
| | | |
| | | /** |
| | | * 过时 |
| | | * 单个订单维权 |
| | | * |
| | | * @param order |
| | | */ |
| | | public void weiQuanOrder(TaoBaoWeiQuanOrder order); |
| | | |
| | | /** |
| | | * 处理京东订单 |
| | | * |
| | | * @param order |
| | | */ |
| | | public void processJDOrder(JDOrder order); |
| | | |
| | | /** |
| | | * 处理拼多多订单 |
| | | * |
| | | * @param pddOrder |
| | | */ |
| | | public void processPDDOrder(PDDOrder pddOrder); |
| | | |
| | | /** |
| | | * 处理唯品会订单 |
| | | * |
| | | * @param vipShopOrder |
| | | */ |
| | | public void processVipShopOrder(VipShopOrder vipShopOrder); |
| | | |
| | | |
| | | /** |
| | | * 处理苏宁订单 |
| | | * |
| | | * @param suningOrder |
| | | */ |
| | | public void processSuningOrder(SuningOrderInfo suningOrder); |
| | | |
| | | |
| | | /** |
| | | * 处理抖音订单 |
| | | * |
| | | * @param dyOrder |
| | | */ |
| | | public void processDYOrder(DYOrder dyOrder); |
| | | |
| | | |
| | | /** |
| | | * 根据淘宝订单的排序值修复常规订单的排序值 |
| | | * |
| | | * @param orderId |
| | | */ |
| | | public void repairCommonOrderByByTaoBaoOrder(String orderId); |
| | | |
| | | /** |
| | | * 是否是分享赚订单 |
| | | * |
| | | * @param commonOrder |
| | | * @return |
| | | */ |
| | | public boolean isShareOrder(CommonOrder commonOrder); |
| | | |
| | | /** |
| | | * 处理淘宝商家未付款的情况 |
| | | */ |
| | | public void doTaoBaoSellerNotPaid(TaoBaoOrder order); |
| | | |
| | | /** |
| | | * 获取可以返利的饿了么红包 |
| | | * @return |
| | | */ |
| | | public List<HongBaoV2> getCanBalanceElmeFanliHongBao(); |
| | | |
| | | /** |
| | | * 饿了么返利 |
| | | * @param hongBaoId |
| | | */ |
| | | public void elmeFanli(Long hongBaoId); |
| | | |
| | | |
| | | /** |
| | | * 使淘宝订单失效 |
| | | * @param tradeId |
| | | */ |
| | | public void invalidTaoBaoOrder(String tradeId); |
| | | } |