Commit 14cf3f65196ced2649c2e86fa2b99eb118bb41f3

Authored by changpengfei
1 parent c08f8e71ac
Exists in master

根据管理群组获取患者信息

Showing 1 changed file with 6 additions and 4 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java View file @ 14cf3f6
... ... @@ -42,6 +42,9 @@
42 42 @Autowired
43 43 private LymsTcardService lymsTcardService;
44 44  
  45 + @Autowired
  46 + private LymsPatientService lymsPatientService;
  47 +
45 48 /**
46 49 * 添加或删除聊天组
47 50 *
... ... @@ -96,10 +99,9 @@
96 99 LymsDoctor doctor = new LymsDoctor();
97 100 doctor = lymsDoctorService.getOne(Wrappers.query(doctor).eq("dlogin", chatgroup.getTarget()));
98 101  
99   - PatientInfo patientInfo = new PatientInfo();
100   - patientInfo.setDid(doctor.getDpid());
101   - patientInfo.setIdno(chatgroup.getFromp());
102   - List<PatientInfo> pLst = patientInfoService.list(Wrappers.query(patientInfo));
  102 + LymsPatient patient = new LymsPatient();
  103 + patient.setIdno(chatgroup.getFromp());
  104 + List<LymsPatient> pLst = lymsPatientService.list(Wrappers.query(patient));
103 105 conDocCode(doctor);
104 106 rs.put("doctor", doctor);
105 107 rs.put("patient", pLst);