From 060b6addea2c3539c4cd6ca3d0ada6b03c8f116a Mon Sep 17 00:00:00 2001 From: zhangcl Date: Wed, 17 Aug 2022 21:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=82=A3=E8=80=85=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E5=8A=A0=E9=A2=84=E7=BA=A6=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/web/controller/api/AppController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 16e8612..5c87a49 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 @@ -211,6 +211,21 @@ public class AppController extends BaseController { itPatientHospitalDoctorService.insertTPatientHospitalDoctor(tPatientHospitalDoctor); } + + + TRecord tRecord = new TRecord(); + tRecord.setHospitalId(appPatientReq.getHospitalId()); + tRecord.setPatientId(tPatient.getId()); + tRecord.setDoctorId(appPatientReq.getDoctorId()); + tRecord.setStatus("0"); + tRecord.setCreateBy(getUsername()); + tRecordService.insertTRecord(tRecord); + List tPHDs = itPatientHospitalDoctorService.selectTPatientHospitalDoctorList(tPatientHospitalDoctor); + if (tPHDs.isEmpty()) + { + itPatientHospitalDoctorService.insertTPatientHospitalDoctor(tPatientHospitalDoctor); + } + return AjaxResult.success(); }