|
@@ -176,12 +176,15 @@ public class StudentOrderController extends BaseController {
|
|
|
if (studentPaymentOrder == null && tenantPaymentOrder == null) {
|
|
|
return failed("订单不存在");
|
|
|
}
|
|
|
+ BigDecimal payAmount;
|
|
|
if (studentPaymentOrder != null) {
|
|
|
createTime = studentPaymentOrder.getCreateTime();
|
|
|
merNos = studentPaymentOrder.getMerNos();
|
|
|
+ payAmount = studentPaymentOrder.getActualAmount();
|
|
|
} else {
|
|
|
createTime = tenantPaymentOrder.getCreateTime();
|
|
|
merNos = tenantPaymentOrder.getMerNos();
|
|
|
+ payAmount = studentPaymentOrder.getActualAmount();
|
|
|
}
|
|
|
|
|
|
Calendar beforeTime = Calendar.getInstance();
|
|
@@ -198,7 +201,7 @@ public class StudentOrderController extends BaseController {
|
|
|
paymentParams.put("app_id", ConfigInit.appId);
|
|
|
paymentParams.put("order_no", orderNo);
|
|
|
paymentParams.put("pay_channel", payChannel);
|
|
|
- paymentParams.put("pay_amt", amount);
|
|
|
+ paymentParams.put("pay_amt", payAmount.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
|
paymentParams.put("goods_title", orderSubject);
|
|
|
paymentParams.put("goods_desc", orderBody);
|
|
|
paymentParams.put("time_expire", timeExpire);
|