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 81bf79d..6f392f5 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; import com.lyms.talkonlineweb.domain.*; import com.lyms.talkonlineweb.request.PatientInfoRequest; import com.lyms.talkonlineweb.result.BaseResponse; @@ -67,6 +68,8 @@ public class PatientController { //关注 @Autowired private LymsAttentionService lymsAttentionService; + @Autowired + private LymsDictService lymsDictService; /** * 获取患者列表 @@ -457,6 +460,9 @@ public class PatientController { wrapper.eq(LymsTkrecord::getPid, lymsTkrecord.getPid()); wrapper.orderByDesc(LymsTkrecord::getCreatedtime); List lymsTkrecords = lymsTkcardService.list(wrapper); + Map param=new HashMap(); + param.put("vtype",4); + List dLst=lymsDictService.listByMap(param); List list = new ArrayList<>(); if (CollectionUtils.isNotEmpty(lymsTkrecords)) { @@ -470,9 +476,15 @@ public class PatientController { data.put("hospitalLevel", hospital.getHlevel()); data.put("doctorName", pcase.getDtname()); data.put("departName", pcase.getDname()); - data.put("doctorLevel", doctor.getLvl()); + data.put("patientName", patients.getPname()); + dLst.forEach(dd->{ + if(dd.getCode()==doctor.getLvl()){ + data.put("doctorLevel", dd.getValue()); + } + }); + StringBuilder sb = new StringBuilder(); LambdaQueryWrapper iwrapper = new QueryWrapper().lambda(); iwrapper.like(LymsIllness::getPcid, pcase.getPcid());