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