diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java index 6f327c3..6f314e7 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java @@ -42,6 +42,9 @@ public class ChatGroupController { @Autowired private LymsTcardService lymsTcardService; + @Autowired + private LymsPatientService lymsPatientService; + /** * 添加或删除聊天组 * @@ -96,10 +99,9 @@ public class ChatGroupController { LymsDoctor doctor = new LymsDoctor(); doctor = lymsDoctorService.getOne(Wrappers.query(doctor).eq("dlogin", chatgroup.getTarget())); - PatientInfo patientInfo = new PatientInfo(); - patientInfo.setDid(doctor.getDpid()); - patientInfo.setIdno(chatgroup.getFromp()); - List pLst = patientInfoService.list(Wrappers.query(patientInfo)); + LymsPatient patient = new LymsPatient(); + patient.setIdno(chatgroup.getFromp()); + List pLst = lymsPatientService.list(Wrappers.query(patient)); conDocCode(doctor); rs.put("doctor", doctor); rs.put("patient", pLst);