|
|
@ -86,18 +86,7 @@ public class MobileRechargeNotifyController { |
|
|
|
}).start(); |
|
|
|
}).start(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
childOrder.setStatus(101); |
|
|
|
outRechargeOrderService.completeOrder(rechargeOrder , childOrder); |
|
|
|
rechargeOrder.setRechargeStatus(202); |
|
|
|
|
|
|
|
rechargeOrder.setPayStatus(100); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outRechargeOrderService.updateOrder(rechargeOrder); |
|
|
|
|
|
|
|
outRechargeChildOrderService.updateOrder(childOrder); |
|
|
|
|
|
|
|
orderFinish(rechargeOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// api商户订单
|
|
|
|
|
|
|
|
if (rechargeOrder.getPayType() == 6) { |
|
|
|
|
|
|
|
apiOrderRecord(rechargeOrder); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 充值失败操作
|
|
|
|
// 充值失败操作
|
|
|
@ -149,17 +138,7 @@ public class MobileRechargeNotifyController { |
|
|
|
highUser.getOpenId()); |
|
|
|
highUser.getOpenId()); |
|
|
|
}).start(); |
|
|
|
}).start(); |
|
|
|
} |
|
|
|
} |
|
|
|
childOrder.setStatus(101); |
|
|
|
outRechargeOrderService.completeOrder(rechargeOrder , childOrder); |
|
|
|
rechargeOrder.setRechargeStatus(202); |
|
|
|
|
|
|
|
rechargeOrder.setPayStatus(100); |
|
|
|
|
|
|
|
rechargeOrder.setFinishTime(new Date()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outRechargeOrderService.updateOrder(rechargeOrder); |
|
|
|
|
|
|
|
outRechargeChildOrderService.updateOrder(childOrder); |
|
|
|
|
|
|
|
orderFinish(rechargeOrder); |
|
|
|
|
|
|
|
if (rechargeOrder.getPayType() == 6) { |
|
|
|
|
|
|
|
apiOrderRecord(rechargeOrder); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
callbackResult(childOrder , rechargeOrder); |
|
|
|
callbackResult(childOrder , rechargeOrder); |
|
|
|
} |
|
|
|
} |
|
|
@ -234,13 +213,7 @@ public class MobileRechargeNotifyController { |
|
|
|
}).start(); |
|
|
|
}).start(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
childOrder.setStatus(101); |
|
|
|
outRechargeOrderService.completeOrder(rechargeOrder , childOrder); |
|
|
|
rechargeOrder.setRechargeStatus(202); |
|
|
|
|
|
|
|
rechargeOrder.setPayStatus(100); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outRechargeOrderService.updateOrder(rechargeOrder); |
|
|
|
|
|
|
|
outRechargeChildOrderService.updateOrder(childOrder); |
|
|
|
|
|
|
|
orderFinish(rechargeOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// api商户订单
|
|
|
|
// api商户订单
|
|
|
|
// if (rechargeOrder.getPayType() == 6) {
|
|
|
|
// if (rechargeOrder.getPayType() == 6) {
|
|
|
@ -302,21 +275,6 @@ public class MobileRechargeNotifyController { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 订单完成操作
|
|
|
|
|
|
|
|
private void orderFinish(OutRechargeOrder rechargeOrder) { |
|
|
|
|
|
|
|
HighOrder highOrder = highOrderService.getOrderByOrderNo(rechargeOrder.getOrderNo()); |
|
|
|
|
|
|
|
if (highOrder != null) { |
|
|
|
|
|
|
|
highOrder.setOrderStatus(OrderStatusEnum.type3.getType()); |
|
|
|
|
|
|
|
highOrder.setFinishTime(new Date()); |
|
|
|
|
|
|
|
for (HighChildOrder highChildOrder : highOrder.getHighChildOrderList()) { |
|
|
|
|
|
|
|
highChildOrder.setChildOrderStatus(OrderChildStatus.STATUS3.getNumber()); |
|
|
|
|
|
|
|
highChildOrder.setFinishTime(new Date()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
orderService.updateOrderData(highOrder); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void apiOrderRecord(OutRechargeOrder rechargeOrder) { |
|
|
|
private void apiOrderRecord(OutRechargeOrder rechargeOrder) { |
|
|
|
Map<String, Object> orderMap = new HashMap<>(); |
|
|
|
Map<String, Object> orderMap = new HashMap<>(); |
|
|
|
orderMap.put("orderId" , rechargeOrder.getId()); |
|
|
|
orderMap.put("orderId" , rechargeOrder.getId()); |
|
|
|