Commit c6d9f9d08d0839fac2a815bd46b573029880fbe3
1 parent
07fa123761
Exists in
dev
#fix:优化预约建档列表
Showing 1 changed file with 11 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java
View file @
c6d9f9d
... | ... | @@ -264,6 +264,17 @@ |
264 | 264 | for (ArchiveData archiveData : list) |
265 | 265 | { |
266 | 266 | Map map = new HashMap(); |
267 | + if (StringUtils.isNotEmpty(archiveData.getIdCard())){ | |
268 | + PatientsQuery patientsQuery = new PatientsQuery(); | |
269 | + patientsQuery.setYn(YnEnums.YES.getId()); | |
270 | + patientsQuery.setType(1); | |
271 | + patientsQuery.setCardNo(archiveData.getIdCard()); | |
272 | + List<Patients> patientses = patientsService.queryPatient(patientsQuery); | |
273 | + if (CollectionUtils.isNotEmpty(patientses)){ | |
274 | + map.put("patientId",patientses.get(0).getId()); | |
275 | + } | |
276 | + | |
277 | + } | |
267 | 278 | |
268 | 279 | map.put("userName",archiveData.getName()); |
269 | 280 | map.put("cardNo",archiveData.getIdCard()); |