|
@@ -284,6 +284,10 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
result.put("order", order);
|
|
|
result.put("orderItemList", orderItemList);
|
|
|
+ if (order.getPayAmount().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ paySuccess(order.getId(),order.getPayType());
|
|
|
+ order.setStatus(1);
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -520,14 +524,6 @@ 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);
|
|
|
//
|