You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/src/main/java/com/entity/model/GuahaoModel.java

253 lines
7.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.entity.model;
// 导入GuahaoEntity类可能用于实体之间的转换或关联操作
import com.entity.GuahaoEntity;
// 导入MyBatis-Plus的TableName注解这里可能用于指定数据库表名但代码中未实际使用
import com.baomidou.mybatisplus.annotations.TableName;
// 导入Jackson的JsonFormat注解用于在JSON序列化和反序列化时格式化日期类型字段
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
// 导入Spring的DateTimeFormat注解用于在处理表单数据时格式化日期类型字段
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 挂号
* 接收传参的实体类
*(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了
* 取自ModelAndView 的model名称
*/
// 定义一个名为GuahaoModel的类实现Serializable接口使其对象可序列化
public class GuahaoModel implements Serializable {
// 定义序列化版本号,确保在不同版本的类之间进行序列化和反序列化时的兼容性
private static final long serialVersionUID = 1L;
/**
* 主键
*/
// 用于唯一标识挂号记录的主键,在数据库操作中通常作为唯一标识
private Integer id;
/**
* 医生
*/
// 表示进行挂号的医生的ID用于关联医生信息
private Integer yishengId;
/**
* 用户
*/
// 表示进行挂号的用户的ID用于关联用户信息
private Integer yonghuId;
/**
* 就诊识别码
*/
// 可能是用于识别就诊记录的唯一编码,具体用途可能根据业务需求而定
private Integer guahaoUuinNumber;
/**
* 挂号时间
*/
// 设置JSON序列化时日期的格式使用中文环境时区为东八区格式为 "yyyy-MM-dd HH:mm:ss"
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
// 用于Spring MVC接收表单数据时将日期字符串转换为Date对象
@DateTimeFormat
// 记录挂号操作的具体时间
private Date guahaoTime;
/**
* 时间类型
*/
// 可能用于区分不同类型的挂号时间,例如预约时间、实际挂号时间等
private Integer guahaoTypes;
/**
* 挂号状态
*/
// 用于表示挂号的当前状态,例如已挂号、已取消、已就诊等
private Integer guahaoStatusTypes;
/**
* 挂号审核
*/
// 用于表示挂号是否经过审核可能是0未审核、1审核通过、2审核不通过
private Integer guahaoYesnoTypes;
/**
* 审核结果
*/
// 当挂号经过审核后,记录审核的具体结果信息,例如审核不通过的原因等
private String guahaoYesnoText;
/**
* 创建时间
*/
// 设置JSON序列化时日期的格式使用中文环境时区为东八区格式为 "yyyy-MM-dd HH:mm:ss"
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
// 用于Spring MVC接收表单数据时将日期字符串转换为Date对象
@DateTimeFormat
// 记录该挂号记录的创建时间
private Date createTime;
/**
* 获取:主键
*/
// 获取主键ID的方法供外部调用以获取该挂号记录的唯一标识
public Integer getId() {
return id;
}
/**
* 设置:主键
*/
// 设置主键ID的方法供外部调用以设置该挂号记录的唯一标识
public void setId(Integer id) {
this.id = id;
}
/**
* 获取:医生
*/
// 获取进行挂号的医生ID的方法供外部调用以获取医生的标识
public Integer getYishengId() {
return yishengId;
}
/**
* 设置:医生
*/
// 设置进行挂号的医生ID的方法供外部调用以设置医生的标识
public void setYishengId(Integer yishengId) {
this.yishengId = yishengId;
}
/**
* 获取:用户
*/
// 获取进行挂号的用户ID的方法供外部调用以获取用户的标识
public Integer getYonghuId() {
return yonghuId;
}
/**
* 设置:用户
*/
// 设置进行挂号的用户ID的方法供外部调用以设置用户的标识
public void setYonghuId(Integer yonghuId) {
this.yonghuId = yonghuId;
}
/**
* 获取:就诊识别码
*/
// 获取就诊识别码的方法,供外部调用以获取该挂号记录的识别编码
public Integer getGuahaoUuinNumber() {
return guahaoUuinNumber;
}
/**
* 设置:就诊识别码
*/
// 设置就诊识别码的方法,供外部调用以设置该挂号记录的识别编码
public void setGuahaoUuinNumber(Integer guahaoUuinNumber) {
this.guahaoUuinNumber = guahaoUuinNumber;
}
/**
* 获取:挂号时间
*/
// 获取挂号时间的方法,供外部调用以获取挂号操作的具体时间
public Date getGuahaoTime() {
return guahaoTime;
}
/**
* 设置:挂号时间
*/
// 设置挂号时间的方法,供外部调用以设置挂号操作的具体时间
public void setGuahaoTime(Date guahaoTime) {
this.guahaoTime = guahaoTime;
}
/**
* 获取:时间类型
*/
// 获取时间类型的方法,供外部调用以获取该挂号记录的时间类型
public Integer getGuahaoTypes() {
return guahaoTypes;
}
/**
* 设置:时间类型
*/
// 设置时间类型的方法,供外部调用以设置该挂号记录的时间类型
public void setGuahaoTypes(Integer guahaoTypes) {
this.guahaoTypes = guahaoTypes;
}
/**
* 获取:挂号状态
*/
// 获取挂号状态的方法,供外部调用以获取该挂号记录的当前状态
public Integer getGuahaoStatusTypes() {
return guahaoStatusTypes;
}
/**
* 设置:挂号状态
*/
// 设置挂号状态的方法,供外部调用以设置该挂号记录的当前状态
public void setGuahaoStatusTypes(Integer guahaoStatusTypes) {
this.guahaoStatusTypes = guahaoStatusTypes;
}
/**
* 获取:挂号审核
*/
// 获取挂号审核状态的方法,供外部调用以获取该挂号记录的审核状态
public Integer getGuahaoYesnoTypes() {
return guahaoYesnoTypes;
}
/**
* 设置:挂号审核
*/
// 设置挂号审核状态的方法,供外部调用以设置该挂号记录的审核状态
public void setGuahaoYesnoTypes(Integer guahaoYesnoTypes) {
this.guahaoYesnoTypes = guahaoYesnoTypes;
}
/**
* 获取:审核结果
*/
// 获取审核结果的方法,供外部调用以获取该挂号记录的审核具体结果信息
public String getGuahaoYesnoText() {
return guahaoYesnoText;
}
/**
* 设置:审核结果
*/
// 设置审核结果的方法,供外部调用以设置该挂号记录的审核具体结果信息
public void setGuahaoYesnoText(String guahaoYesnoText) {
this.guahaoYesnoText = guahaoYesnoText;
}
/**
* 获取:创建时间
*/
// 获取创建时间的方法,供外部调用以获取该挂号记录的创建时间
public Date getCreateTime() {
return createTime;
}
/**
* 设置:创建时间
*/
// 设置创建时间的方法,供外部调用以设置该挂号记录的创建时间
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}