Commit 8c3899a58f1d7b7262a612a34f80ccaf0f88c3f7
1 parent
0c03003009
Exists in
master
and in
6 other branches
产后复查
Showing 1 changed file with 16 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
8c3899a
... | ... | @@ -240,6 +240,22 @@ |
240 | 240 | //获取数据 |
241 | 241 | Patients patients1 = patientsService.findOnePatientById(postReviewRequest.getParentId()); |
242 | 242 | |
243 | + | |
244 | + PatientsQuery query = new PatientsQuery(); | |
245 | + query.setYn(YnEnums.YES.getId()); | |
246 | + query.setPid(patients1.getPid()); | |
247 | + query.setLastMensesStart(patients1.getLastMenses()); | |
248 | + List<Patients> patients = patientsService.queryPatient(query); | |
249 | + if (CollectionUtils.isNotEmpty(patients)) | |
250 | + { | |
251 | + for(Patients patients2 : patients) | |
252 | + { | |
253 | + if (patients2.getHospitalId().equals(hospital)) { | |
254 | + return; | |
255 | + } | |
256 | + } | |
257 | + } | |
258 | + | |
243 | 259 | //判断是否是同一个医院 |
244 | 260 | if (!patients1.getHospitalId().equals(hospital)) { |
245 | 261 |