Commit e6af9c38 by caosy

部分退款

parent 434bced6
......@@ -231,7 +231,9 @@ public abstract class AbstractNotifyService extends CorePaymentService {
BigDecimal bigDecimal = new BigDecimal(reqInfoMap.get("settlement_refund_fee").toString());
NotifyRequestBean notifyRequestBean = new NotifyRequestBean();
notifyRequestBean.setAmount(bigDecimal.divide(new BigDecimal("100")));
if(!this.isAllRefund(notifyRequestBean, order)){
order.setProcessStatus(order.getProcessStatus()+3 ) ;
}
order.setProcessStatus(order.getProcessStatus()
| OrderStatusBitEnum.REFUNDED.getValue());
order.setOrderStatus("U");
......@@ -247,7 +249,7 @@ public abstract class AbstractNotifyService extends CorePaymentService {
} else {
order.setProcessStatus(order.getProcessStatus()
| OrderStatusBitEnum.PART_UNSUBSCRIBED.getValue());
order.setOrderUserStatus(6);
order.setOrderUserStatus(5);
}
BigDecimal oldRefundAmount = BigDecimal.ZERO;
if (order.getRefundAmount() != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment