添加部分退款接口

This commit is contained in:
韩鹏辉
2023-08-16 17:20:20 +08:00
parent 2e0ef00ce0
commit 751e723b71
13 changed files with 390 additions and 65 deletions

View File

@@ -168,4 +168,30 @@ public class MerchantRefundOrder {
this.mercRefundNo = object.getString("mercRefundNo");
this.notifyUrl = object.getString("notifyUrl");
}
public void convert(MerchantOrder order, Map<String,Object> result, String mchNo, BigDecimal refundAmt, String mercRefundNo,String notifyUrl) {
this.merchantCode = order.getMerchantCode();
this.alias = order.getMerchantName();
this.orderNumber = order.getOrderNumber();
this.refundNo = (String)result.get("refundNo");
this.channelNo = order.getTransNo();
this.payTime = order.getTransDt();
this.refundTime = new Date();
this.status = (String)result.get("status");
this.orderType = order.getOrderType();
this.payTypeCode = order.getPayTypeCode();
this.payTypeName = order.getPayTypeName();
this.payAmt = BigDecimal.valueOf(order.getConsumeFee());
this.refundAmt = refundAmt;
this.aisleSwitch = order.getAisleSwitch();
this.createTime = new Date();
this.channelMercNo = mchNo;
this.failMsg = (String)result.get("msg");
this.mercRefundNo = mercRefundNo;
this.notifyUrl = notifyUrl;
}
}