Commit e38f721f1f69b7538f7680aa9064e3cdbd191647
1 parent
a396785ba7
Exists in
master
and in
6 other branches
孕妇学校
Showing 2 changed files with 12 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientCourseFacade.java
View file @
e38f721
... | ... | @@ -309,7 +309,8 @@ |
309 | 309 | patientsQuery.setYn(YnEnums.YES.getId()); |
310 | 310 | patientsQuery.setId(patientCourseModels.get(0).getPatientId()); |
311 | 311 | List<Patients> patientses = patientsService.queryPatient(patientsQuery); |
312 | - if (CollectionUtils.isNotEmpty(patientses)) { | |
312 | + if (CollectionUtils.isNotEmpty(patientses)) | |
313 | + { | |
313 | 314 | Patients patients = patientses.get(0); |
314 | 315 | PatientCourseResult result = new PatientCourseResult(); |
315 | 316 | if (patients != null) { |
... | ... | @@ -319,6 +320,7 @@ |
319 | 320 | result.setPhone(patients.getPhone()); |
320 | 321 | result.setVcCardNo(patients.getVcCardNo()); |
321 | 322 | result.setPatientId(patients.getId()); |
323 | + result.setPatientCourseId(patientCourseModels.get(0).getId()); | |
322 | 324 | } |
323 | 325 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
324 | 326 | objectResponse.setData(result); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PatientCourseResult.java
View file @
e38f721
... | ... | @@ -35,6 +35,15 @@ |
35 | 35 | private String signTime; |
36 | 36 | |
37 | 37 | private String patientId; |
38 | + private String patientCourseId; | |
39 | + | |
40 | + public String getPatientCourseId() { | |
41 | + return patientCourseId; | |
42 | + } | |
43 | + | |
44 | + public void setPatientCourseId(String patientCourseId) { | |
45 | + this.patientCourseId = patientCourseId; | |
46 | + } | |
38 | 47 | |
39 | 48 | public String getPatientId() { |
40 | 49 | return patientId; |