From bb17fcaee084edbceac9903c415d08ff878f01d2 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Tue, 9 Aug 2022 17:59:29 +0800 Subject: [PATCH] =?UTF-8?q?app=E6=82=A3=E8=80=85=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/api/AppController.java | 1 + .../domain/req/AppPatientHospitalDoctor.java | 38 ++++++------------- 2 files changed, 12 insertions(+), 27 deletions(-) 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 e0fdd27..659a779 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 @@ -101,6 +101,7 @@ public class AppController extends BaseController // 患者预约,新增t_record中的一条记录;判断关联表是否存在当前关系 TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); BeanUtils.copyProperties(appPatientHospitalDoctor, tPatientHospitalDoctor); + tPatientHospitalDoctor.setPatientId(getUserId()); TRecord tRecord = new TRecord(); tRecord.setHospitalId(tPatientHospitalDoctor.getHospitalId()); tRecord.setPatientId(tPatientHospitalDoctor.getPatientId()); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientHospitalDoctor.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientHospitalDoctor.java index b966230..94f43c7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientHospitalDoctor.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientHospitalDoctor.java @@ -13,52 +13,36 @@ import java.io.Serializable; * @date 2022/8/9 14:48 */ @ApiModel(value = "AppPatientHospitalDoctor", description = "App端患者预约入参实体") -public class AppPatientHospitalDoctor implements Serializable -{ +public class AppPatientHospitalDoctor implements Serializable { private static final long serialVersionUID = 1L; - /** 患者ID */ - @NotNull(message = "patientId不为空") - @ApiModelProperty("patientId") - private Long patientId; - - /** 医院ID */ + /** + * 医院ID + */ @NotNull(message = "hospitalId不为空") @ApiModelProperty("hospitalId") private Long hospitalId; - /** 医生ID */ + /** + * 医生ID + */ @NotNull(message = "doctorId不为空") @ApiModelProperty("doctorId") private Long doctorId; - public Long getPatientId() - { - return patientId; - } - - public void setPatientId(Long patientId) - { - this.patientId = patientId; - } - - public Long getHospitalId() - { + public Long getHospitalId() { return hospitalId; } - public void setHospitalId(Long hospitalId) - { + public void setHospitalId(Long hospitalId) { this.hospitalId = hospitalId; } - public Long getDoctorId() - { + public Long getDoctorId() { return doctorId; } - public void setDoctorId(Long doctorId) - { + public void setDoctorId(Long doctorId) { this.doctorId = doctorId; } }