...
|
...
|
@@ -279,7 +279,7 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple |
|
|
new GoodsServiceRefundHandler()
|
|
|
.loadLogger(logger)
|
|
|
.loadUser(pao.getUid())
|
|
|
.loadActionCase(SellerWalletDetail.Type.CANCEL_DELIVER)
|
|
|
.loadActionCase(SellerWalletDetail.Type.APPRAISE_OK)
|
|
|
.loadRefundAction(payRefundService::refund)
|
|
|
.loadOrder(orderCode, paidCode, pao.getPayment(), left)
|
|
|
.refund();
|
...
|
...
|
@@ -350,12 +350,25 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple |
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 确认收货环节发现少件,取消订单保证金原路退回
|
|
|
* @param appraiseOrder
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public int shamDeliver(AppraiseOrder appraiseOrder){
|
|
|
int rows = super.shamDeliver(appraiseOrder);
|
|
|
if (rows == 0){
|
|
|
return rows;
|
|
|
}
|
|
|
//refund amount
|
|
|
new GoodsServiceRefundHandler()
|
|
|
.loadLogger(logger)
|
|
|
.loadUser(appraiseOrder.getUid())
|
|
|
.loadActionCase(SellerWalletDetail.Type.SELLER_SHAM_SEND_OUT)
|
|
|
.loadRefundAction(payRefundService::refund)
|
|
|
.loadOrder(appraiseOrder.getOrderCode(), appraiseOrder.getParentOrderCode(), appraiseOrder.getPayment(), appraiseOrder.getAmount())
|
|
|
.refund();
|
|
|
depositService.insertFakeDeposit(appraiseOrder.getUid(), appraiseOrder.getOrderCode(), appraiseOrder.getParentOrderCode());
|
|
|
return rows;
|
|
|
}
|
...
|
...
|
@@ -456,5 +469,27 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple |
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 瑕疵
|
|
|
* 退回对应保证金至卖家账户
|
|
|
* @param appraiseOrder
|
|
|
* @return
|
|
|
*/
|
|
|
public int findFlaw(AppraiseOrder appraiseOrder){
|
|
|
int rows = super.findFlaw(appraiseOrder);
|
|
|
if (rows == 0){
|
|
|
return rows;
|
|
|
}
|
|
|
new GoodsServiceRefundHandler()
|
|
|
.loadLogger(logger)
|
|
|
.loadUser(appraiseOrder.getUid())
|
|
|
.loadActionCase(SellerWalletDetail.Type.FLAW)
|
|
|
.loadRefundAction(payRefundService::refund)
|
|
|
.loadOrder(appraiseOrder.getOrderCode(), appraiseOrder.getParentOrderCode(), appraiseOrder.getPayment(), appraiseOrder.getAmount())
|
|
|
.refund();
|
|
|
depositService.insertFakeDeposit(appraiseOrder.getUid(), appraiseOrder.getOrderCode(), appraiseOrder.getParentOrderCode());
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|