|
|
|
@ -13,69 +13,82 @@ import java.util.Date;
|
|
|
|
|
* 医生
|
|
|
|
|
* 后端返回视图实体辅助类
|
|
|
|
|
* (通常后端关联的表或者自定义的字段需要返回使用)
|
|
|
|
|
* 该类继承自 YishengEntity,用于扩展或修改返回给前端的实体数据结构
|
|
|
|
|
*/
|
|
|
|
|
@TableName("yisheng")
|
|
|
|
|
@TableName("yisheng") // 表明该实体类对应的数据库表名为 "yisheng",这里可能是为了保持与基础实体类的一致性或者有特定的 MyBatis-Plus 相关用途
|
|
|
|
|
public class YishengView extends YishengEntity implements Serializable {
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 科室的值
|
|
|
|
|
*/
|
|
|
|
|
private String yishengValue;
|
|
|
|
|
/**
|
|
|
|
|
* 职位的值
|
|
|
|
|
*/
|
|
|
|
|
private String zhiweiValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
// 序列化版本号,用于在对象序列化和反序列化过程中保持版本一致性
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 科室的值
|
|
|
|
|
* 这里定义了一个额外的字段,用于存储科室相关的具体值(可能是科室名称等更详细信息,与 YishengEntity 中的科室字段可能有所区别)
|
|
|
|
|
*/
|
|
|
|
|
private String yishengValue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 职位的值
|
|
|
|
|
* 同样定义了一个额外的字段,用于存储职位相关的具体值(可能是职位名称等更详细信息,与 YishengEntity 中的职位字段可能有所区别)
|
|
|
|
|
*/
|
|
|
|
|
private String zhiweiValue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 无参构造函数
|
|
|
|
|
* 用于创建一个空的 YishengView 对象
|
|
|
|
|
*/
|
|
|
|
|
public YishengView() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 带参构造函数
|
|
|
|
|
* 接收一个 YishengEntity 对象,将其属性复制到当前 YishengView 对象中
|
|
|
|
|
*
|
|
|
|
|
* @param yishengEntity YishengEntity 类型的对象,其属性将被复制到当前对象
|
|
|
|
|
*/
|
|
|
|
|
public YishengView(YishengEntity yishengEntity) {
|
|
|
|
|
try {
|
|
|
|
|
// 使用 BeanUtils 工具类将 YishengEntity 对象的属性复制到当前 YishengView 对象
|
|
|
|
|
BeanUtils.copyProperties(this, yishengEntity);
|
|
|
|
|
} catch (IllegalAccessException | InvocationTargetException e) {
|
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
|
// 如果在属性复制过程中出现非法访问或调用目标异常,打印异常堆栈信息
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取科室的值
|
|
|
|
|
*
|
|
|
|
|
* @return 返回存储的科室的值
|
|
|
|
|
*/
|
|
|
|
|
public String getYishengValue() {
|
|
|
|
|
return yishengValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置科室的值
|
|
|
|
|
*
|
|
|
|
|
* @param yishengValue 要设置的科室的值
|
|
|
|
|
*/
|
|
|
|
|
public void setYishengValue(String yishengValue) {
|
|
|
|
|
this.yishengValue = yishengValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取: 科室的值
|
|
|
|
|
*/
|
|
|
|
|
public String getYishengValue() {
|
|
|
|
|
return yishengValue;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设置: 科室的值
|
|
|
|
|
*/
|
|
|
|
|
public void setYishengValue(String yishengValue) {
|
|
|
|
|
this.yishengValue = yishengValue;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 获取: 职位的值
|
|
|
|
|
*/
|
|
|
|
|
public String getZhiweiValue() {
|
|
|
|
|
return zhiweiValue;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设置: 职位的值
|
|
|
|
|
*/
|
|
|
|
|
public void setZhiweiValue(String zhiweiValue) {
|
|
|
|
|
this.zhiweiValue = zhiweiValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取职位的值
|
|
|
|
|
*
|
|
|
|
|
* @return 返回存储的职位的值
|
|
|
|
|
*/
|
|
|
|
|
public String getZhiweiValue() {
|
|
|
|
|
return zhiweiValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设置职位的值
|
|
|
|
|
*
|
|
|
|
|
* @param zhiweiValue 要设置的职位的值
|
|
|
|
|
*/
|
|
|
|
|
public void setZhiweiValue(String zhiweiValue) {
|
|
|
|
|
this.zhiweiValue = zhiweiValue;
|
|
|
|
|
}
|
|
|
|
|
}
|