From 02b779f938e553a995717cfc5ef11d9fc5d4e657 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期四, 18 七月 2024 18:10:36 +0800 Subject: [PATCH] zjh 2024/07/18-1 --- ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java | 43 +++++++++++++++++++------------------------ 1 files changed, 19 insertions(+), 24 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java index f13d349..569f84c 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java @@ -114,7 +114,7 @@ Map<String, Object> resultDatasss = (Map<String, Object>) resultDatas.get(0); String hisRegistrationId = resultDatasss.get("his_registration_id").toString(); //淇濆瓨鎸傚彿鍏ュ弬鍑哄弬 - resultDatasss.put("cardId", customer.getCardId()); + resultDatasss.put("cardId",hisRegistrationId); JSONObject object4 = JSONUtil.parseObj(resultDatasss); LambdaQueryWrapper<HisApiConfig> lambdaQueryWrapper = new LambdaQueryWrapper<>(); lambdaQueryWrapper.eq(HisApiConfig::getApiMethod, "Outpinregapply"); @@ -123,7 +123,11 @@ //闂ㄨ瘖鍖荤敓鎺ヨ瘖 controller.Outpinconapply(hisRegistrationId, date, "00029"); - customer.setCardId(hisRegistrationId); + if(null != tjOrder.getTjCategory() && !tjOrder.getTjCategory().equals("13")){ + customer.setCardId(hisRegistrationId); + }else { + customer.setCardId("0"); + } customerService.updateById(customer); transitionService.updateCardIdByTjNumAndIdCard(customer.getCusIdcard(), hisRegistrationId, tjOrder.getTjNumber()); tjOrder.setCardId(hisRegistrationId); @@ -157,7 +161,7 @@ dto.setJzqk(9); controller.Outpinimpapply(dto); - return tijianshenqing(customer, date); + return tijianshenqing(customer, date,tjOrder.getCardId()); } // } @@ -168,10 +172,10 @@ //浣撴瀵筯is鐢宠鍗曡皟鐢ㄦ柟娉� - private AjaxResult tijianshenqing(TjCustomer customer, String date) { + private AjaxResult tijianshenqing(TjCustomer customer, String date,String cardId) { //妫�楠岀敵璇� OutpintestapplyDto dto = new OutpintestapplyDto(); - dto.setHisRegistrationId(customer.getCardId()); + dto.setHisRegistrationId(cardId); dto.setSfzh(customer.getCusIdcard()); dto.setSqysbm("00029"); dto.setMzksbm("0101"); @@ -179,7 +183,7 @@ dto.setCzybm("00029"); dto.setCzyksbm("0101"); dto.setSfjz("0"); - List<TbTransition> detailList = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(), customer.getCardId()); + List<TbTransition> detailList = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(),cardId); List<OutpintestapplyDetailsDto> detailsDtos = new ArrayList<>(); List<OutpinmedicapplyDetilsDto> outpinmedicapplyDetilsDtos =new ArrayList<>(); if (null != detailList && detailList.size() > 0) { @@ -228,10 +232,7 @@ for (OutpintestapplyDetailsDto detail : details) { LtkjJianchajianyanTree tree = new LtkjJianchajianyanTree(); tree.setCardId(dto.getHisRegistrationId()); - LambdaQueryWrapper<TjCustomer> wrapper4 = new LambdaQueryWrapper<>(); - wrapper4.eq(TjCustomer::getCardId, tree.getCardId()); - TjCustomer tjCustomer = customerService.getOne(wrapper4); - tree.setPationid(tjCustomer.getPationId()); + tree.setPationid(customer.getPationId()); JSONObject resultData = object3.getJSONObject("ResultData"); tree.setSqdh(resultData.getStr("jysqdh")); tree.setFyhj(resultData.getStr("fyhj")); @@ -269,7 +270,7 @@ //鑽搧鐢宠 if(outpinmedicapplyDetilsDtos.size()>0){ OutpinmedicapplyDto dto1=new OutpinmedicapplyDto(); - dto1.setHisRegistrationId(customer.getCardId()); + dto1.setHisRegistrationId(cardId); dto1.setSfzh(customer.getCusIdcard()); dto1.setSqysbm("00029"); dto1.setMzksbm("0101"); @@ -290,7 +291,7 @@ for (OutpinmedicapplyDetilsDto detilsDto : outpinmedicapplyDetilsDtos) { TjCf cf=new TjCf(); - cf.setCardId(customer.getCardId()); + cf.setCardId(cardId); cf.setSfzh(customer.getCusIdcard()); cf.setCfh(cfh); cf.setSqysbm("00029"); @@ -313,14 +314,14 @@ //闂ㄨ瘖妫�鏌ョ敵璇� OutpinexamapplyDto outpinexamapplyDto = new OutpinexamapplyDto(); - outpinexamapplyDto.setHisRegistrationId(customer.getCardId()); + outpinexamapplyDto.setHisRegistrationId(cardId); outpinexamapplyDto.setSfzh(customer.getCusIdcard()); outpinexamapplyDto.setSqysbm("00029"); outpinexamapplyDto.setMzksbm("0101"); outpinexamapplyDto.setCzybm("00029"); outpinexamapplyDto.setCzyksbm("0101"); outpinexamapplyDto.setSfjz("0"); - List<TbTransition> detailLists = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(), customer.getCardId()); + List<TbTransition> detailLists = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(),cardId); List<OutpintestapplyDetailsDto> detailsDtoss = new ArrayList<>(); if (null != detailLists && detailLists.size() > 0) { LambdaQueryWrapper<TjProject> wq = new LambdaQueryWrapper<>(); @@ -358,10 +359,7 @@ for (OutpintestapplyDetailsDto detail : details) { LtkjJianchajianyanTree tree = new LtkjJianchajianyanTree(); tree.setCardId(outpinexamapplyDto.getHisRegistrationId()); - LambdaQueryWrapper<TjCustomer> wrapper4 = new LambdaQueryWrapper<>(); - wrapper4.eq(TjCustomer::getCardId, tree.getCardId()); - TjCustomer tjCustomer = customerService.getOne(wrapper4); - tree.setPationid(tjCustomer.getPationId()); + tree.setPationid(customer.getPationId()); JSONObject resultData = object5.getJSONObject("ResultData"); tree.setSqdh(resultData.getStr("jcsqdh")); tree.setFyhj(resultData.getStr("fyhj")); @@ -410,7 +408,7 @@ //闂ㄨ瘖娌荤枟澶勭疆鐢宠 OutpintreatapplyDto dao = new OutpintreatapplyDto(); - dao.setHisRegistrationId(customer.getCardId()); + dao.setHisRegistrationId(cardId); dao.setSfzh(customer.getCusIdcard()); dao.setSqysbm("00029"); dao.setMzksbm("0101"); @@ -418,7 +416,7 @@ dao.setCzybm("00029"); dao.setCzyksbm("0101"); dao.setSfjz("0"); - List<TbTransition> details = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(), customer.getCardId()); + List<TbTransition> details = tbTransitionService.getTbTransitionListByCusId(customer.getCusIdcard(),cardId); List<OutpintestapplyDetailsDto> detailDtos = new ArrayList<>(); if (null != details && details.size() > 0) { LambdaQueryWrapper<TjProject> wq = new LambdaQueryWrapper<>(); @@ -456,10 +454,7 @@ for (OutpintestapplyDetailsDto detail : details1) { LtkjJianchajianyanTree tree = new LtkjJianchajianyanTree(); tree.setCardId(dao.getHisRegistrationId()); - LambdaQueryWrapper<TjCustomer> wrapper4 = new LambdaQueryWrapper<>(); - wrapper4.eq(TjCustomer::getCardId, tree.getCardId()); - TjCustomer tjCustomer = customerService.getOne(wrapper4); - tree.setPationid(tjCustomer.getPationId()); + tree.setPationid(customer.getPationId()); JSONObject resultData = mzylyzsq3.getJSONObject("ResultData"); tree.setSqdh(resultData.getStr("zlczh")); tree.setFyhj(resultData.getStr("fyhj")); -- Gitblit v1.8.0