app患者预约修改

master
gongzhenkun 2 years ago
parent 63fe4e8b80
commit bb17fcaee0

@ -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());

@ -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;
}
}

Loading…
Cancel
Save