| | |
| | | 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){ |
| | |
| | | return shengchengbgmoban(tjNumber, tjOrder, tjCustomer, reportTemplate,zongJianYiShiQianMing); |
| | | } catch (Exception e) { |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | log.error("生成报告失败:"+e.getMessage(),String.valueOf(e)); |
| | | log.error("生成报告失败:",e); |
| | | tjOrder.setReportTime(null); |
| | | tjOrder.setCheckTime(null); |
| | | tjOrder.setCheckStatus(0); |