app患者预约修改

master
gongzhenkun 2 years ago
parent 63fe4e8b80
commit bb17fcaee0

@ -101,6 +101,7 @@ public class AppController extends BaseController
// 患者预约新增t_record中的一条记录;判断关联表是否存在当前关系 // 患者预约新增t_record中的一条记录;判断关联表是否存在当前关系
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
BeanUtils.copyProperties(appPatientHospitalDoctor, tPatientHospitalDoctor); BeanUtils.copyProperties(appPatientHospitalDoctor, tPatientHospitalDoctor);
tPatientHospitalDoctor.setPatientId(getUserId());
TRecord tRecord = new TRecord(); TRecord tRecord = new TRecord();
tRecord.setHospitalId(tPatientHospitalDoctor.getHospitalId()); tRecord.setHospitalId(tPatientHospitalDoctor.getHospitalId());
tRecord.setPatientId(tPatientHospitalDoctor.getPatientId()); tRecord.setPatientId(tPatientHospitalDoctor.getPatientId());

@ -13,52 +13,36 @@ import java.io.Serializable;
* @date 2022/8/9 14:48 * @date 2022/8/9 14:48
*/ */
@ApiModel(value = "AppPatientHospitalDoctor", description = "App端患者预约入参实体") @ApiModel(value = "AppPatientHospitalDoctor", description = "App端患者预约入参实体")
public class AppPatientHospitalDoctor implements Serializable public class AppPatientHospitalDoctor implements Serializable {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 患者ID */ /**
@NotNull(message = "patientId不为空") * ID
@ApiModelProperty("patientId") */
private Long patientId;
/** 医院ID */
@NotNull(message = "hospitalId不为空") @NotNull(message = "hospitalId不为空")
@ApiModelProperty("hospitalId") @ApiModelProperty("hospitalId")
private Long hospitalId; private Long hospitalId;
/** 医生ID */ /**
* ID
*/
@NotNull(message = "doctorId不为空") @NotNull(message = "doctorId不为空")
@ApiModelProperty("doctorId") @ApiModelProperty("doctorId")
private Long doctorId; private Long doctorId;
public Long getPatientId() public Long getHospitalId() {
{
return patientId;
}
public void setPatientId(Long patientId)
{
this.patientId = patientId;
}
public Long getHospitalId()
{
return hospitalId; return hospitalId;
} }
public void setHospitalId(Long hospitalId) public void setHospitalId(Long hospitalId) {
{
this.hospitalId = hospitalId; this.hospitalId = hospitalId;
} }
public Long getDoctorId() public Long getDoctorId() {
{
return doctorId; return doctorId;
} }
public void setDoctorId(Long doctorId) public void setDoctorId(Long doctorId) {
{
this.doctorId = doctorId; this.doctorId = doctorId;
} }
} }

Loading…
Cancel
Save