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.
411 lines
8.1 KiB
411 lines
8.1 KiB
package com.entity;
|
|
|
|
// 导入 MyBatis-Plus 用于指定主键的注解
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
|
// 导入 MyBatis-Plus 用于指定数据库表名的注解
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
|
// 导入 JSR 303 验证注解(在当前代码中未实际使用)
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotNull;
|
|
// 导入 Jackson 注解(在当前代码中未实际使用)
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
// 导入反射调用可能抛出的异常类
|
|
import java.lang.reflect.InvocationTargetException;
|
|
// 导入序列化接口
|
|
import java.io.Serializable;
|
|
// 导入日期类
|
|
import java.util.Date;
|
|
// 导入列表集合类(在当前代码中未实际使用)
|
|
import java.util.List;
|
|
// 导入 Spring 框架用于日期格式化的注解
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
// 导入 Jackson 用于 JSON 序列化时日期格式化的注解
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
// 导入 Apache Commons BeanUtils 工具类,用于对象属性复制
|
|
import org.apache.commons.beanutils.BeanUtils;
|
|
// 导入 MyBatis-Plus 用于指定字段的注解
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
// 导入 MyBatis-Plus 字段填充策略枚举
|
|
import com.baomidou.mybatisplus.enums.FieldFill;
|
|
// 导入 MyBatis-Plus 主键生成策略枚举
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
|
|
|
/**
|
|
* 医生
|
|
*
|
|
* @author
|
|
* @email
|
|
*/
|
|
@TableName("yisheng")
|
|
public class YishengEntity<T> implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
public YishengEntity() {
|
|
|
|
}
|
|
|
|
public YishengEntity(T t) {
|
|
try {
|
|
BeanUtils.copyProperties(this, t);
|
|
} catch (IllegalAccessException | InvocationTargetException e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 主键
|
|
*/
|
|
@TableId(type = IdType.AUTO)
|
|
@TableField(value = "id")
|
|
|
|
private Integer id;
|
|
|
|
/**
|
|
* 医生工号
|
|
*/
|
|
@TableField(value = "yisheng_uuid_number")
|
|
|
|
private String yishengUuidNumber;
|
|
|
|
/**
|
|
* 账户
|
|
*/
|
|
@TableField(value = "username")
|
|
|
|
private String username;
|
|
|
|
/**
|
|
* 密码
|
|
*/
|
|
@TableField(value = "password")
|
|
|
|
private String password;
|
|
|
|
/**
|
|
* 医生名称
|
|
*/
|
|
@TableField(value = "yisheng_name")
|
|
|
|
private String yishengName;
|
|
|
|
/**
|
|
* 科室
|
|
*/
|
|
@TableField(value = "yisheng_types")
|
|
|
|
private Integer yishengTypes;
|
|
|
|
/**
|
|
* 职位
|
|
*/
|
|
@TableField(value = "zhiwei_types")
|
|
|
|
private Integer zhiweiTypes;
|
|
|
|
/**
|
|
* 职称
|
|
*/
|
|
@TableField(value = "yisheng_zhichneg")
|
|
|
|
private String yishengZhichneg;
|
|
|
|
/**
|
|
* 医生头像
|
|
*/
|
|
@TableField(value = "yisheng_photo")
|
|
|
|
private String yishengPhoto;
|
|
|
|
/**
|
|
* 联系方式
|
|
*/
|
|
@TableField(value = "yisheng_phone")
|
|
|
|
private String yishengPhone;
|
|
|
|
/**
|
|
* 挂号须知
|
|
*/
|
|
@TableField(value = "yisheng_guahao")
|
|
|
|
private String yishengGuahao;
|
|
|
|
/**
|
|
* 邮箱
|
|
*/
|
|
@TableField(value = "yisheng_email")
|
|
|
|
private String yishengEmail;
|
|
|
|
/**
|
|
* 挂号价格
|
|
*/
|
|
@TableField(value = "yisheng_new_money")
|
|
|
|
private Double yishengNewMoney;
|
|
|
|
/**
|
|
* 履历介绍
|
|
*/
|
|
@TableField(value = "yisheng_content")
|
|
|
|
private String yishengContent;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
|
|
@DateTimeFormat
|
|
@TableField(value = "create_time",fill = FieldFill.INSERT)
|
|
|
|
private Date createTime;
|
|
|
|
/**
|
|
* 设置:主键
|
|
*/
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
/**
|
|
* 获取:主键
|
|
*/
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
/**
|
|
* 设置:医生工号
|
|
*/
|
|
public String getYishengUuidNumber() {
|
|
return yishengUuidNumber;
|
|
}
|
|
|
|
/**
|
|
* 获取:医生工号
|
|
*/
|
|
|
|
public void setYishengUuidNumber(String yishengUuidNumber) {
|
|
this.yishengUuidNumber = yishengUuidNumber;
|
|
}
|
|
|
|
/**
|
|
* 设置:账户
|
|
*/
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
/**
|
|
* 获取:账户
|
|
*/
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
/**
|
|
* 设置:密码
|
|
*/
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
/**
|
|
* 获取:密码
|
|
*/
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
/**
|
|
* 设置:医生名称
|
|
*/
|
|
public String getYishengName() {
|
|
return yishengName;
|
|
}
|
|
|
|
/**
|
|
* 获取:医生名称
|
|
*/
|
|
|
|
public void setYishengName(String yishengName) {
|
|
this.yishengName = yishengName;
|
|
}
|
|
|
|
/**
|
|
* 设置:科室
|
|
*/
|
|
public Integer getYishengTypes() {
|
|
return yishengTypes;
|
|
}
|
|
|
|
/**
|
|
* 获取:科室
|
|
*/
|
|
|
|
public void setYishengTypes(Integer yishengTypes) {
|
|
this.yishengTypes = yishengTypes;
|
|
}
|
|
|
|
/**
|
|
* 设置:职位
|
|
*/
|
|
public Integer getZhiweiTypes() {
|
|
return zhiweiTypes;
|
|
}
|
|
|
|
/**
|
|
* 获取:职位
|
|
*/
|
|
|
|
public void setZhiweiTypes(Integer zhiweiTypes) {
|
|
this.zhiweiTypes = zhiweiTypes;
|
|
}
|
|
|
|
/**
|
|
* 设置:职称
|
|
*/
|
|
public String getYishengZhichneg() {
|
|
return yishengZhichneg;
|
|
}
|
|
|
|
/**
|
|
* 获取:职称
|
|
*/
|
|
|
|
public void setYishengZhichneg(String yishengZhichneg) {
|
|
this.yishengZhichneg = yishengZhichneg;
|
|
}
|
|
|
|
/**
|
|
* 设置:医生头像
|
|
*/
|
|
public String getYishengPhoto() {
|
|
return yishengPhoto;
|
|
}
|
|
|
|
/**
|
|
* 获取:医生头像
|
|
*/
|
|
|
|
public void setYishengPhoto(String yishengPhoto) {
|
|
this.yishengPhoto = yishengPhoto;
|
|
}
|
|
|
|
/**
|
|
* 设置:联系方式
|
|
*/
|
|
public String getYishengPhone() {
|
|
return yishengPhone;
|
|
}
|
|
|
|
/**
|
|
* 获取:联系方式
|
|
*/
|
|
|
|
public void setYishengPhone(String yishengPhone) {
|
|
this.yishengPhone = yishengPhone;
|
|
}
|
|
|
|
/**
|
|
* 设置:挂号须知
|
|
*/
|
|
public String getYishengGuahao() {
|
|
return yishengGuahao;
|
|
}
|
|
|
|
/**
|
|
* 获取:挂号须知
|
|
*/
|
|
|
|
public void setYishengGuahao(String yishengGuahao) {
|
|
this.yishengGuahao = yishengGuahao;
|
|
}
|
|
|
|
/**
|
|
* 设置:邮箱
|
|
*/
|
|
public String getYishengEmail() {
|
|
return yishengEmail;
|
|
}
|
|
|
|
/**
|
|
* 获取:邮箱
|
|
*/
|
|
|
|
public void setYishengEmail(String yishengEmail) {
|
|
this.yishengEmail = yishengEmail;
|
|
}
|
|
|
|
/**
|
|
* 设置:挂号价格
|
|
*/
|
|
public Double getYishengNewMoney() {
|
|
return yishengNewMoney;
|
|
}
|
|
|
|
/**
|
|
* 获取:挂号价格
|
|
*/
|
|
|
|
public void setYishengNewMoney(Double yishengNewMoney) {
|
|
this.yishengNewMoney = yishengNewMoney;
|
|
}
|
|
|
|
/**
|
|
* 设置:履历介绍
|
|
*/
|
|
public String getYishengContent() {
|
|
return yishengContent;
|
|
}
|
|
|
|
/**
|
|
* 获取:履历介绍
|
|
*/
|
|
|
|
public void setYishengContent(String yishengContent) {
|
|
this.yishengContent = yishengContent;
|
|
}
|
|
|
|
/**
|
|
* 设置:创建时间
|
|
*/
|
|
public Date getCreateTime() {
|
|
return createTime;
|
|
}
|
|
|
|
/**
|
|
* 获取:创建时间
|
|
*/
|
|
|
|
public void setCreateTime(Date createTime) {
|
|
this.createTime = createTime;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Yisheng{" +
|
|
"id=" + id +
|
|
", yishengUuidNumber=" + yishengUuidNumber +
|
|
", username=" + username +
|
|
", password=" + password +
|
|
", yishengName=" + yishengName +
|
|
", yishengTypes=" + yishengTypes +
|
|
", zhiweiTypes=" + zhiweiTypes +
|
|
", yishengZhichneg=" + yishengZhichneg +
|
|
", yishengPhoto=" + yishengPhoto +
|
|
", yishengPhone=" + yishengPhone +
|
|
", yishengGuahao=" + yishengGuahao +
|
|
", yishengEmail=" + yishengEmail +
|
|
", yishengNewMoney=" + yishengNewMoney +
|
|
", yishengContent=" + yishengContent +
|
|
", createTime=" + createTime +
|
|
"}";
|
|
}
|
|
} |