| | |
| | | boolean b = lock.tryLock(3, TimeUnit.MINUTES); |
| | | if (b) { |
| | | AjaxResult result = processOrderWithTransaction(tjOrder, tjCustomer, tjReservation, tjFlowingWater, mallOrder, sysUser); |
| | | if (!result.get("code").toString().equals("200")) |
| | | if (!result.get("code").toString().equals("200")) { |
| | | hisApiMethod.ZfHisApiMethod(tjOrder.getCardId()); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | tjOrderService.tjQiandaodengji(tjOrder.getTjNumber()); |
| | | }else { |
| | | tjOrderService.tjQiandaodengji(tjOrder.getTjNumber()); |
| | | } |
| | | return result; |
| | | } |
| | | }catch (Exception e){ |
| | |
| | | } |
| | | |
| | | tjCustomer.setCardId("0"); |
| | | Long cusNumber = tjCustomer.getCusNumber(); |
| | | cusNumber -= 1; |
| | | tjCustomer.setCusNumber(cusNumber); |
| | | tjCustomerService.updateById(tjCustomer); |
| | | tjOrderService.removeById(order.getOrderId()); |
| | | return AjaxResult.success("撤销成功"); |