Showing
1 changed file
with
14 additions
and
1 deletions
1 | package com.yohoufo.order.service.impl; | 1 | package com.yohoufo.order.service.impl; |
2 | 2 | ||
3 | import com.yohoufo.common.alarm.EventBusPublisher; | 3 | import com.yohoufo.common.alarm.EventBusPublisher; |
4 | +import com.yohoufo.dal.order.model.SellerWalletDetail; | ||
4 | import com.yohoufo.order.common.BillTradeStatus; | 5 | import com.yohoufo.order.common.BillTradeStatus; |
5 | import com.yohoufo.order.common.RefundCase; | 6 | import com.yohoufo.order.common.RefundCase; |
6 | import com.yohoufo.order.constants.RefundContant; | 7 | import com.yohoufo.order.constants.RefundContant; |
@@ -27,9 +28,21 @@ public class PayRefundService { | @@ -27,9 +28,21 @@ public class PayRefundService { | ||
27 | public PayRefundBo refund(PaymentRequest refundReq, BillLogEvent.BillLogEventBuilder bleBuilder){ | 28 | public PayRefundBo refund(PaymentRequest refundReq, BillLogEvent.BillLogEventBuilder bleBuilder){ |
28 | logger.info("in pay refund, refundReq {}", refundReq); | 29 | logger.info("in pay refund, refundReq {}", refundReq); |
29 | boolean toSeller = refundReq.getRefundCase() !=null && RefundCase.SELLER_EARNEST_MONEY == refundReq.getRefundCase(); | 30 | boolean toSeller = refundReq.getRefundCase() !=null && RefundCase.SELLER_EARNEST_MONEY == refundReq.getRefundCase(); |
30 | - if(refundReq.isSuper() && toSeller){ | 31 | + |
32 | + boolean miniFaultRejectFlag=false; | ||
33 | + if(null!=refundReq.getRefundattch()&&refundReq.getRefundattch().getType()!=null){ | ||
34 | + if(SellerWalletDetail.Type.MINI_FAULT_REJECT.getValue()== refundReq.getRefundattch().getType().intValue() ){ | ||
35 | + miniFaultRejectFlag=true; | ||
36 | + } | ||
37 | + } | ||
38 | + | ||
39 | + //瑕疵确认不通过,超级卖家需要扣保证金 | ||
40 | + //if(refundReq.isSuper() && toSeller){ | ||
41 | + if(refundReq.isSuper() && toSeller && !miniFaultRejectFlag){ | ||
42 | + logger.info("in pay refund refund return , miniFaultRejectFlag {} ,refundReq {}", miniFaultRejectFlag ,refundReq); | ||
31 | return null; | 43 | return null; |
32 | } | 44 | } |
45 | + logger.info("in pay refund refund enter , miniFaultRejectFlag {} ,refundReq {}", miniFaultRejectFlag ,refundReq); | ||
33 | PayRefundBo refundResp = paymentService.refund(refundReq); | 46 | PayRefundBo refundResp = paymentService.refund(refundReq); |
34 | 47 | ||
35 | 48 |
-
Please register or login to post a comment