Commit 2a290fd6c99f2ee2276b5cb5d93b526c134196ae
1 parent
3828f54380
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 4 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
2a290fd
| ... | ... | @@ -79,12 +79,13 @@ |
| 79 | 79 | //获取数据 |
| 80 | 80 | Patients patients1 = patientsService.findOnePatientById(postReviewRequest.getParentId()); |
| 81 | 81 | String hospital= autoMatchFacade.getHospitalId(userId); |
| 82 | + PostReviewModel postReviewModel = postReviewRequest.convertToDataModel(); | |
| 82 | 83 | //判断是否是同一个医院 |
| 83 | 84 | if(!patients1.getHospitalId().equals(hospital)){ |
| 84 | 85 | patients1.setId(null); |
| 85 | 86 | patients1.setHospitalId(hospital); |
| 86 | 87 | patients1.setBuildType(0); |
| 87 | - patients1.setBookbuildingDoctor(userId + ""); | |
| 88 | + patients1.setBookbuildingDoctor(postReviewModel.getProdDoctor()); | |
| 88 | 89 | patients1.setBookbuildingDate(DateUtil.parseYMD(postReviewRequest.getCheckTime())); |
| 89 | 90 | patients1.setVcCardNo(null); |
| 90 | 91 | patients1.setMremark(null); |
| 91 | 92 | |
| ... | ... | @@ -94,9 +95,9 @@ |
| 94 | 95 | patientsService.addPatient(patients1); |
| 95 | 96 | } |
| 96 | 97 | if (StringUtils.isEmpty(postReviewRequest.getId())) { |
| 97 | - PostReviewModel postReviewModel = postReviewRequest.convertToDataModel(); | |
| 98 | + | |
| 98 | 99 | postReviewModel.setYn(YnEnums.YES.getId()); |
| 99 | - postReviewModel.setHospitalId(hospital); | |
| 100 | + postReviewModel.setHospitalId(hospital); | |
| 100 | 101 | Patients patients = patientsService.findOnePatientById(postReviewRequest.getParentId()); |
| 101 | 102 | if(StringUtils.isNotEmpty(postReviewRequest.getDueDate())){ |
| 102 | 103 | patients.setFmDate(DateUtil.parseYMD(postReviewRequest.getDueDate())); |