diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 998238d..cce9f27 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -184,7 +184,7 @@ public class AppController extends BaseController TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); tPatientHospitalDoctor.setHospitalId(appPatientReq.getHospitalId()); tPatientHospitalDoctor.setDoctorId(appPatientReq.getDoctorId()); - tPatientHospitalDoctor.setPatientId(appPatientReq.getId()); + tPatientHospitalDoctor.setPatientId(tPatient.getId()); List tPatientHospitalDoctors = itPatientHospitalDoctorService.selectTPatientHospitalDoctorList(tPatientHospitalDoctor); if (tPatientHospitalDoctors.isEmpty()) {