From 8437240e917bc454990cf0762fc80f560f71a6f6 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Sat, 18 Sep 2021 14:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=82=A3=E8=80=85=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E7=9A=84=E5=8C=BB=E7=94=9F=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/talkonlineweb/controller/PatientController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 081d168..81bf79d 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -53,6 +53,9 @@ public class PatientController { private LymsLogsService lymsLogsService;//日志记录 @Autowired + private LymsHdepartService lymsHdepartService;//科室服务 + + @Autowired private HXService hxService; //医院 @@ -511,12 +514,13 @@ public class PatientController { if (CollectionUtils.isNotEmpty(lymsAttentions)) { for (LymsAttention attention : lymsAttentions) { LymsDoctor doctor = lymsDoctorService.getById(attention.getDid()); + LymsHdepart depart = lymsHdepartService.getById(doctor.getDpid()); LymsHospital hospital = lymsHospitalService.getById(doctor.getHid()); Map data = new HashMap(20); data.put("doctorName", doctor.getDname()); - data.put("departName", doctor.getDdname()); + data.put("departName", depart.getDname()); data.put("doctorLevel", doctor.getLvl()); - data.put("hospitalName", doctor.getHname()); + data.put("hospitalName", depart.getHname()); data.put("hospitalLevel", hospital.getHlevel()); data.put("doctorDesc", doctor.getIntro()); list.add(data); -- 1.8.3.1