|
|
@ -96,7 +96,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { |
|
|
|
public HighOrder orderPaySuccessHandle(String orderNo, OrderPayType payType, String paySerialNo, BigDecimal payRealPrice, HighUserCard userCard) { |
|
|
|
public HighOrder orderPaySuccessHandle(String orderNo, OrderPayType payType, String paySerialNo, BigDecimal payRealPrice, HighUserCard userCard) { |
|
|
|
HighOrder order = orderService.getOrderDetailByNo(orderNo); |
|
|
|
HighOrder order = orderService.getOrderDetailByNo(orderNo); |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (order != null && order.getOrderStatus().equals(OrderStatus.STATUS2.getNumber())) { |
|
|
|
if (order != null && order.getOrderStatus().equals(OrderStatus.STATUS1.getNumber())) { |
|
|
|
order.setPaySerialNo(paySerialNo); |
|
|
|
order.setPaySerialNo(paySerialNo); |
|
|
|
order.setPayRealPrice(payRealPrice); |
|
|
|
order.setPayRealPrice(payRealPrice); |
|
|
|
order.setPayTime(new Date()); |
|
|
|
order.setPayTime(new Date()); |
|
|
@ -131,7 +131,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { |
|
|
|
order.setExceptionContent(e.getMessage()); |
|
|
|
order.setExceptionContent(e.getMessage()); |
|
|
|
orderService.updateOrderData(order); |
|
|
|
orderService.updateOrderData(order); |
|
|
|
} |
|
|
|
} |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, e.getMessage()); |
|
|
|
return order; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -141,9 +141,9 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { |
|
|
|
* @throws Exception |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Transactional( |
|
|
|
@Transactional( |
|
|
|
propagation= Propagation.REQUIRES_NEW, |
|
|
|
propagation= Propagation.REQUIRED, |
|
|
|
isolation = Isolation.READ_COMMITTED, |
|
|
|
isolation = Isolation.READ_COMMITTED, |
|
|
|
timeout = 10, |
|
|
|
timeout = 20, |
|
|
|
rollbackFor = Exception.class) |
|
|
|
rollbackFor = Exception.class) |
|
|
|
public void orderBusHandle(HighOrder order) throws Exception { |
|
|
|
public void orderBusHandle(HighOrder order) throws Exception { |
|
|
|
for (HighChildOrder childOrder : order.getHighChildOrderList()) { |
|
|
|
for (HighChildOrder childOrder : order.getHighChildOrderList()) { |
|
|
|