Commit 8437240e917bc454990cf0762fc80f560f71a6f6

Authored by changpengfei
1 parent 2ff2580538
Exists in master

查询患者关注的医生记录

Showing 1 changed file with 6 additions and 2 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 8437240
... ... @@ -53,6 +53,9 @@
53 53 private LymsLogsService lymsLogsService;//日志记录
54 54  
55 55 @Autowired
  56 + private LymsHdepartService lymsHdepartService;//科室服务
  57 +
  58 + @Autowired
56 59 private HXService hxService;
57 60  
58 61 //医院
59 62  
60 63  
... ... @@ -511,12 +514,13 @@
511 514 if (CollectionUtils.isNotEmpty(lymsAttentions)) {
512 515 for (LymsAttention attention : lymsAttentions) {
513 516 LymsDoctor doctor = lymsDoctorService.getById(attention.getDid());
  517 + LymsHdepart depart = lymsHdepartService.getById(doctor.getDpid());
514 518 LymsHospital hospital = lymsHospitalService.getById(doctor.getHid());
515 519 Map data = new HashMap(20);
516 520 data.put("doctorName", doctor.getDname());
517   - data.put("departName", doctor.getDdname());
  521 + data.put("departName", depart.getDname());
518 522 data.put("doctorLevel", doctor.getLvl());
519   - data.put("hospitalName", doctor.getHname());
  523 + data.put("hospitalName", depart.getHname());
520 524 data.put("hospitalLevel", hospital.getHlevel());
521 525 data.put("doctorDesc", doctor.getIntro());
522 526 list.add(data);