Commit 62bb3de9968b77917d27c1cb17a710df4d346b77

Authored by changpengfei
1 parent 5b27621f4b
Exists in master

根据群组ID获取患者和医生信息

Showing 1 changed file with 12 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java View file @ 62bb3de
... ... @@ -86,6 +86,11 @@
86 86 return baseResponse;
87 87 }
88 88  
  89 + /**
  90 + * 根据群组ID获取患者和医生信息
  91 + * @param chatgroup
  92 + * @return
  93 + */
89 94 @GetMapping("getPatDoc")
90 95 public BaseResponse getPatDoc(LymsChatgroup chatgroup) {
91 96 log.info(">>>>>>>>>>chatgroup:" + chatgroup);
92 97  
... ... @@ -100,8 +105,15 @@
100 105 patient.setIdno(chatgroup.getFromp());
101 106 List<LymsPatient> pLst = lymsPatientService.list(Wrappers.query(patient));
102 107 conDocCode(doctor);
  108 +
  109 + List<Map<String, Object>> tmpList = lymsChatgroupService.getPinfoBySesson(null, doctor.getDid().toString(), chatgroup.getHxgroupid());
  110 + if (tmpList.size() > 0) {
  111 + rs.put("sess",tmpList.get(0));
  112 + }
  113 +
103 114 rs.put("doctor", doctor);
104 115 rs.put("patient", pLst);
  116 +
105 117 baseResponse.setObject(rs);
106 118  
107 119 return baseResponse;