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);