...
|
...
|
@@ -166,20 +166,20 @@ public class BuyerOrderCancelService { |
|
|
.cancel();
|
|
|
}
|
|
|
|
|
|
public void cancelForCsBeforeDepotReceive(int uid, long orderCode){
|
|
|
public void cancelForSellerShamSendOut(int uid, long orderCode){
|
|
|
new BuyerOrderCancelHandler(uid, orderCode)
|
|
|
.withBuyerOrderSupplier(buyerOrderMapper, buyerOrderGoodsMapper)
|
|
|
// 卖家发货 -> 鉴定中心收货前客服取消
|
|
|
.withStateTransition(OrderStatus.SELLER_SEND_OUT, OrderStatus.CS_CANCEL_BEFORE_DEPOT_RECEIVE, orderStatusFlowService)
|
|
|
.withStateTransition(OrderStatus.SELLER_SEND_OUT, OrderStatus.SELLER_SHAM_SEND_OUT, orderStatusFlowService)
|
|
|
// 保证金分账给平台和买家
|
|
|
.withTransfer(transferService, TransferCase.EARNEST_MONEY_TO_BUYER, SellerWalletDetail.Type.CS_CANCEL_BEFORE_DEPOT_RECEIVE)
|
|
|
.withTransfer(transferService, TransferCase.EARNEST_MONEY_TO_BUYER, SellerWalletDetail.Type.SELLER_SHAM_SEND_OUT)
|
|
|
// 退买家货款
|
|
|
.withRefundGoodsMoney(payRefundService::refund).refundCase(RefundCase.BUYER_GOODS_MONEY).and()
|
|
|
// 通知卖家涉及虚假发货
|
|
|
.withNoticeSeller(inBoxFacade::sellerDeliverNotice, 4).sellerOrderGoodsMapper(sellerOrderGoodsMapper).and()
|
|
|
// 退优惠券
|
|
|
.withRefundCoupon(BuyerRefundCouponEvent.BizCase.CS_CANCEL_BEFORE_DEPOT_RECEIVE)
|
|
|
.withFailAlarm(AlarmConfig.CS_CANCEL_BEFORE_DEPOT_RECEIVE)
|
|
|
.withRefundCoupon(BuyerRefundCouponEvent.BizCase.SELLER_SHAM_SEND_OUT)
|
|
|
.withFailAlarm(AlarmConfig.SELLER_SHAM_SEND_OUT)
|
|
|
.cancel();
|
|
|
}
|
|
|
|
...
|
...
|
|