| | |
| | | |
| | | //对接his总接口 注册挂号接诊申请单操作 |
| | | @Transactional |
| | | public void HisApiMethods(TjCustomer customer, Long orderId) { |
| | | public AjaxResult HisApiMethods(TjCustomer customer, Long orderId) { |
| | | |
| | | Date dates = new Date(); |
| | | final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss"); |
| | |
| | | LambdaQueryWrapper<HisApiConfig> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Outpintestapply"); |
| | | HisApiConfig hisApiConfig = hisApiConfigService.getOne(lambdaQueryWrapper); |
| | | hisApiGetMethodService.save(object4, "Outpintestapply", hisApiConfig); |
| | | hisApiGetMethodService.save(object4, "Outpintestapply", hisApiConfig,JSONUtil.toJsonStr(BeanUtil.beanToMap(dto))); |
| | | |
| | | }else { |
| | | return AjaxResult.success(); |
| | | } |
| | | //门诊检查申请 |
| | | OutpinexamapplyDto outpinexamapplyDto = new OutpinexamapplyDto(); |
| | |
| | | LambdaQueryWrapper<HisApiConfig> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Outpinexamapply"); |
| | | HisApiConfig hisApiConfig = hisApiConfigService.getOne(lambdaQueryWrapper); |
| | | hisApiGetMethodService.save(jsonObject, "Outpinexamapply", hisApiConfig); |
| | | hisApiGetMethodService.save(jsonObject, "Outpinexamapply", hisApiConfig,JSONUtil.toJsonStr(BeanUtil.beanToMap(outpinexamapplyDto))); |
| | | |
| | | }else { |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | //门诊治疗处置申请 |
| | |
| | | map.put("cardId", customer.getCardId()); |
| | | JSONObject jsonObject = JSONUtil.parseObj(map); |
| | | LambdaQueryWrapper<HisApiConfig> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Outpinmedapply"); |
| | | lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Outpintreatapply"); |
| | | HisApiConfig hisApiConfig = hisApiConfigService.getOne(lambdaQueryWrapper); |
| | | hisApiGetMethodService.save(jsonObject, "Outpinmedapply", hisApiConfig); |
| | | |
| | | hisApiGetMethodService.save(jsonObject, "Outpintreatapply", hisApiConfig,JSONUtil.toJsonStr(BeanUtil.beanToMap(dao))); |
| | | }else { |
| | | return AjaxResult.error(); |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | |