|
@@ -520,6 +520,14 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
orderPayRes.setMessage("订单已付款或已关闭");
|
|
|
return orderPayRes;
|
|
|
}
|
|
|
+ if (detail.getPayAmount().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ orderPayRes.setPay_amt(detail.getPayAmount().setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
+ orderPayRes.setPay_info("");
|
|
|
+ orderPayRes.setPayChannel(payReq.getPayChannel().getCode());
|
|
|
+ orderPayRes.setPaymentNo("");
|
|
|
+ orderPayRes.setStatus(true);
|
|
|
+ return orderPayRes;
|
|
|
+ }
|
|
|
// UserOrderPayment userOrderPayment = userOrderPaymentService.getByOrderNo(detail.getOrderSn(),
|
|
|
// payReq.getPayChannel(),TradeStatusEnum.pending);
|
|
|
//
|