From c33236ec2712d88e8b0326fdf6de134c407f59a4 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Sat, 18 Sep 2021 15:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=82=A3=E8=80=85=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E7=9A=84=E5=8C=BB=E7=94=9F=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/talkonlineweb/controller/PatientController.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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()); -- 1.8.3.1