Commit 13db49951e6c42c5760e229ad6cb955592581300

Authored by changpengfei
1 parent 002b5b77c5
Exists in master and in 1 other branch dev

update

Showing 1 changed file with 9 additions and 3 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 13db499
... ... @@ -152,13 +152,21 @@
152 152 log.info(pcase);
153 153  
154 154 Map param = new HashMap();
155   -
  155 + param.put("vtype",3);
  156 + List<LymsDict> dLst=lymsDictService.listByMap(param);
156 157 for (int i = 0; i < iArr.length; i++) {
157 158 LymsIllness ness = new LymsIllness();
158 159 ness.setCreatedby(patient.getCreatedby());
159 160 ness.setPcid(pcase.getPcid());
160 161 ness.setIid(Integer.parseInt(iArr[i]));
161 162 ness.setCreatedtime(new Date());
  163 +
  164 + dLst.forEach(e->{
  165 + if(e.getCode().intValue()==ness.getIid().intValue()){
  166 + ness.setIname(e.getValue());
  167 + }
  168 + });
  169 +
162 170 param.clear();
163 171 param.put("pcid", pcase.getPcid());
164 172 param.put("iid", iArr[i]);
... ... @@ -653,8 +661,6 @@
653 661 }
654 662 /**
655 663 * 小程序-查询用户是否关注该医生
656   - * @param pid 患者id
657   - * @param did 医生id
658 664 * @return true 可以关注 false 已关注不能再关注
659 665 */
660 666 @GetMapping("getDoctorById")