Commit 908b81f31269e576709310f167014d5c999a318b
1 parent
438bf4398c
Exists in
master
and in
6 other branches
高危转诊bug修改
Showing 1 changed file with 9 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
908b81f
| ... | ... | @@ -232,7 +232,8 @@ |
| 232 | 232 | patients.setServiceType(ServiceTypeEnums.STANDARD_SERVICE.getId()); |
| 233 | 233 | patients.setServiceStatus(ServiceStatusEnums.STANDARD_OPEN.getId()); |
| 234 | 234 | patients.setExpVip(0); |
| 235 | - patients.setEnable("0"); | |
| 235 | + //在转入医院隐藏档案 | |
| 236 | + patients.setEnable("2"); | |
| 236 | 237 | patients.setSource(referralApplyOrderAddRequest.getParentId()); |
| 237 | 238 | id = patientsService.addPatient(patients).getId(); |
| 238 | 239 | operateLogFacade.addAddOptLog(userId, Integer.parseInt(hospital), patients, OptActionEnums.ADD.getId(), "添加孕妇转诊"); |
| ... | ... | @@ -1292,7 +1293,7 @@ |
| 1292 | 1293 | messageMap.put("count", 0); |
| 1293 | 1294 | // message.add(messageMap); |
| 1294 | 1295 | } |
| 1295 | - return new BaseObjectResponse().setData(messageMap).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("提示:24小时内您有" + cout + "条高危转诊数据,请点击处理!"); | |
| 1296 | + return new BaseObjectResponse().setData(messageMap).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("提示:24小时内您收到" + cout + "条高危转诊数据,请点击处理!"); | |
| 1296 | 1297 | } else { |
| 1297 | 1298 | List<ReferralApplyOrderModel> referralApplyOrderModels = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); |
| 1298 | 1299 | if (CollectionUtils.isNotEmpty(referralApplyOrderModels)) { |
| ... | ... | @@ -1366,6 +1367,12 @@ |
| 1366 | 1367 | String hospital = autoMatchFacade.getHospitalId(userId); |
| 1367 | 1368 | if (null != referralApplyOrderModel) { |
| 1368 | 1369 | ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); |
| 1370 | + //如果是接受修改建立档案 | |
| 1371 | + if (state != null && "2".equals(state)) { | |
| 1372 | + Patients patients = new Patients(); | |
| 1373 | + patients.setEnable("1"); | |
| 1374 | + patientsService.updatePatientOne(patients, referralApplyOrderModel.getParentId()); | |
| 1375 | + } | |
| 1369 | 1376 | referralApplyOrderQuery.setId(id); |
| 1370 | 1377 | referralApplyOrderModel.setStatus(Integer.parseInt(state)); |
| 1371 | 1378 | referralApplyOrderModel.setReason(reason); |