Commit 149296d4cf689994b7255bd4910c21497374e24c

Authored by changpengfei
1 parent 5030b3e9de
Exists in master

debug

Showing 1 changed file with 9 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 149296d
... ... @@ -521,6 +521,9 @@
521 521 wrapper.eq(LymsAttention::getPid, lymsAttention.getPid());
522 522 wrapper.orderByDesc(LymsAttention::getCreatedtime);
523 523 List<LymsAttention> lymsAttentions = lymsAttentionService.list(wrapper);
  524 + Map param=new HashMap();
  525 + param.put("vtype",4);
  526 + List<LymsDict> dLst=lymsDictService.listByMap(param);
524 527  
525 528 List<Map> list = new ArrayList<>();
526 529 if (CollectionUtils.isNotEmpty(lymsAttentions)) {
527 530  
... ... @@ -531,11 +534,16 @@
531 534 Map data = new HashMap(20);
532 535 data.put("doctorName", doctor.getDname());
533 536 data.put("departName", depart.getDname());
534   - data.put("doctorLevel", doctor.getLvl());
  537 +
535 538 data.put("doctorImage", doctor.getHeadimg());
536 539 data.put("hospitalName", depart.getHname());
537 540 data.put("hospitalLevel", hospital.getHlevel());
538 541 data.put("doctorDesc", doctor.getIntro());
  542 + dLst.forEach(dd->{
  543 + if(dd.getCode()==doctor.getLvl()){
  544 + data.put("doctorLevel", dd.getValue());
  545 + }
  546 + });
539 547 list.add(data);
540 548 }
541 549 }