| | |
| | | /*调用his接口*/ |
| | | String config = configService.selectConfigByKey("sfkqdyhis"); |
| | | if (null != config && config.equals("Y")) { |
| | | // AjaxResult result = hisApiMethod.HisApiMethods(tjCustomer, tjOrder); |
| | | // if (!result.get("code").toString().equals("200")) { |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | // Object jzh = result.get("jzh"); |
| | | // if (null != jzh && null != jzh.toString()) { |
| | | // hisApiMethod.ZfHisApiMethod(jzh.toString()); |
| | | // } |
| | | // log.info("该登记人挂号失败, 就诊号为: " + tjOrder.getCardId()); |
| | | // return AjaxResult.error("挂号失败!" + result.get("msg").toString()); |
| | | // } |
| | | AjaxResult result = hisApiMethod.HisApiMethods(tjCustomer, tjOrder); |
| | | if (!result.get("code").toString().equals("200")) { |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | Object jzh = result.get("jzh"); |
| | | if (null != jzh && null != jzh.toString()) { |
| | | hisApiMethod.ZfHisApiMethod(jzh.toString()); |
| | | } |
| | | log.info("该登记人挂号失败, 就诊号为: " + tjOrder.getCardId()); |
| | | return AjaxResult.error("挂号失败!" + result.get("msg").toString()); |
| | | } |
| | | |
| | | log.info("该登记人的his就诊号是: " + tjOrder.getCardId()); |
| | | //团体 |