...
|
...
|
@@ -565,9 +565,11 @@ public class AppraiseService { |
|
|
//退保证金给卖家
|
|
|
private PaymentRequest refundEarnestMoney(SellerWalletDetail.Type swdType,Long orderCode,Integer sellerUid ,SellerOrder sellerOrder,int skup,Integer buyerUid,SellerOrderStatus targetSoStatus ,double refundMoney){
|
|
|
Long sellerOrderCode = sellerOrder.getOrderCode();
|
|
|
Integer sop = sellerOrder.getPayment() == null ? 0 : sellerOrder.getPayment();
|
|
|
PaymentRequest refundReqOfSeller = PaymentRequest.builder().uid(sellerUid)
|
|
|
.refundCase(RefundCase.SELLER_EARNEST_MONEY)
|
|
|
.orderCode(sellerOrderCode).refundAmount(refundMoney)
|
|
|
.payment(sop)
|
|
|
.build();
|
|
|
boolean sellerIsSuper = sellerService.isSuperEntrySeller(sellerUid);
|
|
|
refundReqOfSeller.setSuper(sellerIsSuper);
|
...
|
...
|
@@ -575,7 +577,7 @@ public class AppraiseService { |
|
|
,orderCode ,swdType,
|
|
|
sellerUid,sellerIsSuper, sellerOrderCode, skup, refundMoney ,refundReqOfSeller);
|
|
|
|
|
|
if (!sellerIsSuper && PaymentHelper.isWallet(sellerOrder.getPayment())){
|
|
|
if (!sellerIsSuper && PaymentHelper.isWallet(sop)){
|
|
|
LOGGER.info("in refundEarnestMoney begin set MerchantOrderAttachInfo orderCode {} ,swdType {} seller uid {},sellerIsSuper {},seller order code {}, skup {}, refundMoney {},refundReqOfSeller {}"
|
|
|
,orderCode ,swdType,
|
|
|
sellerUid,sellerIsSuper, sellerOrderCode, skup, refundMoney ,refundReqOfSeller);
|
...
|
...
|
@@ -598,7 +600,7 @@ public class AppraiseService { |
|
|
sellerUid,sellerIsSuper, sellerOrderCode, skup, refundMoney ,refundReqOfSeller);
|
|
|
BillLogEvent.BillLogEventBuilder bleb = BillLogEvent.builder()
|
|
|
.buyerUid(buyerUid).sellerUid(sellerUid).orderCode(sellerOrder.getOrderCode())
|
|
|
.payType(sellerOrder.getPayment()).refundCase(RefundCase.SELLER_EARNEST_MONEY)
|
|
|
.payType(sop).refundCase(RefundCase.SELLER_EARNEST_MONEY)
|
|
|
.skup(skup);
|
|
|
|
|
|
new RefundEarnestMoneyHandler()
|
...
|
...
|
|