Commit c33236ec2712d88e8b0326fdf6de134c407f59a4
1 parent
8437240e91
Exists in
master
and in
1 other branch
查询患者关注的医生记录
Showing 1 changed file with 13 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
c33236e
| ... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| 8 | 8 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 9 | 9 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 10 | +import com.baomidou.mybatisplus.extension.service.IService; | |
| 10 | 11 | import com.lyms.talkonlineweb.domain.*; |
| 11 | 12 | import com.lyms.talkonlineweb.request.PatientInfoRequest; |
| 12 | 13 | import com.lyms.talkonlineweb.result.BaseResponse; |
| ... | ... | @@ -67,6 +68,8 @@ |
| 67 | 68 | //关注 |
| 68 | 69 | @Autowired |
| 69 | 70 | private LymsAttentionService lymsAttentionService; |
| 71 | + @Autowired | |
| 72 | + private LymsDictService lymsDictService; | |
| 70 | 73 | |
| 71 | 74 | /** |
| 72 | 75 | * 获取患者列表 |
| ... | ... | @@ -457,6 +460,9 @@ |
| 457 | 460 | wrapper.eq(LymsTkrecord::getPid, lymsTkrecord.getPid()); |
| 458 | 461 | wrapper.orderByDesc(LymsTkrecord::getCreatedtime); |
| 459 | 462 | List<LymsTkrecord> lymsTkrecords = lymsTkcardService.list(wrapper); |
| 463 | + Map param=new HashMap(); | |
| 464 | + param.put("vtype",4); | |
| 465 | + List<LymsDict> dLst=lymsDictService.listByMap(param); | |
| 460 | 466 | |
| 461 | 467 | List<Map> list = new ArrayList<>(); |
| 462 | 468 | if (CollectionUtils.isNotEmpty(lymsTkrecords)) { |
| 463 | 469 | |
| ... | ... | @@ -470,8 +476,14 @@ |
| 470 | 476 | data.put("hospitalLevel", hospital.getHlevel()); |
| 471 | 477 | data.put("doctorName", pcase.getDtname()); |
| 472 | 478 | data.put("departName", pcase.getDname()); |
| 473 | - data.put("doctorLevel", doctor.getLvl()); | |
| 479 | + | |
| 474 | 480 | data.put("patientName", patients.getPname()); |
| 481 | + | |
| 482 | + dLst.forEach(dd->{ | |
| 483 | + if(dd.getCode()==doctor.getLvl()){ | |
| 484 | + data.put("doctorLevel", dd.getValue()); | |
| 485 | + } | |
| 486 | + }); | |
| 475 | 487 | |
| 476 | 488 | StringBuilder sb = new StringBuilder(); |
| 477 | 489 | LambdaQueryWrapper<LymsIllness> iwrapper = new QueryWrapper().lambda(); |