@ -86,18 +86,7 @@ public class MobileRechargeNotifyController {
} ) . start ( ) ;
}
childOrder . setStatus ( 101 ) ;
rechargeOrder . setRechargeStatus ( 202 ) ;
rechargeOrder . setPayStatus ( 100 ) ;
outRechargeOrderService . updateOrder ( rechargeOrder ) ;
outRechargeChildOrderService . updateOrder ( childOrder ) ;
orderFinish ( rechargeOrder ) ;
// api商户订单
if ( rechargeOrder . getPayType ( ) = = 6 ) {
apiOrderRecord ( rechargeOrder ) ;
}
outRechargeOrderService . completeOrder ( rechargeOrder , childOrder ) ;
} else {
// 充值失败操作
@ -149,17 +138,7 @@ public class MobileRechargeNotifyController {
highUser . getOpenId ( ) ) ;
} ) . start ( ) ;
}
childOrder . setStatus ( 101 ) ;
rechargeOrder . setRechargeStatus ( 202 ) ;
rechargeOrder . setPayStatus ( 100 ) ;
rechargeOrder . setFinishTime ( new Date ( ) ) ;
outRechargeOrderService . updateOrder ( rechargeOrder ) ;
outRechargeChildOrderService . updateOrder ( childOrder ) ;
orderFinish ( rechargeOrder ) ;
if ( rechargeOrder . getPayType ( ) = = 6 ) {
apiOrderRecord ( rechargeOrder ) ;
}
outRechargeOrderService . completeOrder ( rechargeOrder , childOrder ) ;
} else {
callbackResult ( childOrder , rechargeOrder ) ;
}
@ -234,13 +213,7 @@ public class MobileRechargeNotifyController {
} ) . start ( ) ;
}
childOrder . setStatus ( 101 ) ;
rechargeOrder . setRechargeStatus ( 202 ) ;
rechargeOrder . setPayStatus ( 100 ) ;
outRechargeOrderService . updateOrder ( rechargeOrder ) ;
outRechargeChildOrderService . updateOrder ( childOrder ) ;
orderFinish ( rechargeOrder ) ;
outRechargeOrderService . completeOrder ( rechargeOrder , childOrder ) ;
// api商户订单
// 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 ) {
Map < String , Object > orderMap = new HashMap < > ( ) ;
orderMap . put ( "orderId" , rechargeOrder . getId ( ) ) ;