From 908b81f31269e576709310f167014d5c999a318b Mon Sep 17 00:00:00 2001 From: "[wangbo]" Date: Mon, 26 Aug 2019 10:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E5=8D=B1=E8=BD=AC=E8=AF=8Abug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/platform/operate/web/facade/ApplyOrderFacade.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java index 9e39cf7..4008ec8 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java @@ -232,7 +232,8 @@ public class ApplyOrderFacade { patients.setServiceType(ServiceTypeEnums.STANDARD_SERVICE.getId()); patients.setServiceStatus(ServiceStatusEnums.STANDARD_OPEN.getId()); patients.setExpVip(0); - patients.setEnable("0"); + //在转入医院隐藏档案 + patients.setEnable("2"); patients.setSource(referralApplyOrderAddRequest.getParentId()); id = patientsService.addPatient(patients).getId(); operateLogFacade.addAddOptLog(userId, Integer.parseInt(hospital), patients, OptActionEnums.ADD.getId(), "添加孕妇转诊"); @@ -1292,7 +1293,7 @@ public class ApplyOrderFacade { messageMap.put("count", 0); // message.add(messageMap); } - return new BaseObjectResponse().setData(messageMap).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("提示:24小时内您有" + cout + "条高危转诊数据,请点击处理!"); + return new BaseObjectResponse().setData(messageMap).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("提示:24小时内您收到" + cout + "条高危转诊数据,请点击处理!"); } else { List referralApplyOrderModels = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); if (CollectionUtils.isNotEmpty(referralApplyOrderModels)) { @@ -1366,6 +1367,12 @@ public class ApplyOrderFacade { String hospital = autoMatchFacade.getHospitalId(userId); if (null != referralApplyOrderModel) { ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); + //如果是接受修改建立档案 + if (state != null && "2".equals(state)) { + Patients patients = new Patients(); + patients.setEnable("1"); + patientsService.updatePatientOne(patients, referralApplyOrderModel.getParentId()); + } referralApplyOrderQuery.setId(id); referralApplyOrderModel.setStatus(Integer.parseInt(state)); referralApplyOrderModel.setReason(reason); -- 1.8.3.1