Commit 41aa23fe5c19863b8150fbe679e066802ebcba27
1 parent
673606deb2
Exists in
master
and in
6 other branches
产检医生统计
Showing 2 changed files with 18 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntexDoctorStatistController.java
View file @
41aa23f
... | ... | @@ -152,7 +152,14 @@ |
152 | 152 | size = antextDoctorPatients.size(); |
153 | 153 | } |
154 | 154 | for (int i = startIndex; i < size; i++) { |
155 | - resultData.add(antextDoctorPatients.get(i)); | |
155 | + AntextDoctorPatient doctorPatient = antextDoctorPatients.get(i); | |
156 | + Users users = usersService.getUsers(Integer.parseInt(doctorPatient.getDoctorId())); | |
157 | + if (users != null) { | |
158 | + doctorPatient.setDoctorName(users.getName()); | |
159 | + } else { | |
160 | + doctorPatient.setDoctorName("产检医生"); | |
161 | + } | |
162 | + resultData.add(doctorPatient); | |
156 | 163 | } |
157 | 164 | } |
158 | 165 | BaseObjectResponse result = new BaseObjectResponse(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntextDoctorPatient.java
View file @
41aa23f
... | ... | @@ -11,6 +11,8 @@ |
11 | 11 | public class AntextDoctorPatient { |
12 | 12 | //医生ID |
13 | 13 | private String doctorId; |
14 | + //医生名称 | |
15 | + private String doctorName; | |
14 | 16 | //患者ID |
15 | 17 | private String pId; |
16 | 18 | //患者姓名 |
... | ... | @@ -35,6 +37,14 @@ |
35 | 37 | private String checkTimeStr; |
36 | 38 | //产检医生 |
37 | 39 | private String checkDoctor; |
40 | + | |
41 | + public String getDoctorName() { | |
42 | + return doctorName; | |
43 | + } | |
44 | + | |
45 | + public void setDoctorName(String doctorName) { | |
46 | + this.doctorName = doctorName; | |
47 | + } | |
38 | 48 | |
39 | 49 | public String getDueFmDateStr() { |
40 | 50 | return dueFmDateStr; |