|
@@ -615,9 +615,9 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
void payingOrderHandle(OmsOrder userOrder) {
|
|
|
//判断汇付订单状态
|
|
|
- UserOrderPayment orderPayment = userOrderPaymentService.getByTranNo(userOrder.getOrderSn());
|
|
|
+ UserOrderPayment orderPayment = userOrderPaymentService.getByOrderNoAndStatusPaying(userOrder.getOrderSn());
|
|
|
if (null == orderPayment) {
|
|
|
- return;
|
|
|
+ cancelOrder(userOrder.getId(), "支付超时");
|
|
|
}
|
|
|
try {
|
|
|
Map<String, Object> resMap = paymentSdk.queryPayment(orderPayment.getTransNo());
|
|
@@ -639,14 +639,13 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
/**
|
|
|
* 订单完成
|
|
|
*
|
|
|
- * @author liweifan
|
|
|
* @param: detail
|
|
|
* @updateTime 2022/4/13 17:17
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
void orderSuccess(OmsOrder detail, JSONObject hfRes) {
|
|
|
//更新订单
|
|
|
- UserOrderPayment orderPayment = userOrderPaymentService.getByTranNo(detail.getOrderSn());
|
|
|
+ UserOrderPayment orderPayment = userOrderPaymentService.getByOrderNoAndStatusPaying(detail.getOrderSn());
|
|
|
if (orderPayment.getPayChannel().equals("alipay")) {
|
|
|
paySuccess(detail.getId(),1);
|
|
|
} else if (orderPayment.getPayChannel().equals("wx_lite")) {
|