package com.lyms.talkonlineweb.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 病例
* @TableName lyms_pcase
*/
@TableName(value ="lyms_pcase")
@Data
public class LymsPcase implements Serializable {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 患者id
*/
@TableField(value = "pid")
private Integer pid;
/**
* 手机号
*/
@TableField(value = "mobile")
private String mobile;
/**
* 填写医院id
*/
@TableField(value = "hid")
private Integer hid;
@TableField(value = "hname")
private String hname;//医院名称
/**
* 填写科室id
*/
@TableField(value = "did")
private Integer did;
@TableField(value = "dname")
private String dname;//科室名称
/**
* 就诊医生
*/
@TableField(value = "dtid")
private Integer dtid;
@TableField(value = "dtname")
private String dtname;//就诊医生姓名
/**
* 创建人
*/
@TableField(value = "createdby")
private Integer createdby;
/**
* 创建时间
*/
@TableField(value = "createdtime")
private Date createdtime;
/**
* 更新人
*/
@TableField(value = "updatedby")
private Integer updatedby;
/**
* 更新时间
*/
@TableField(value = "updated_time")
private Date updatedTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
LymsPcase other = (LymsPcase) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
&& (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
&& (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
&& (this.getDtid() == null ? other.getDtid() == null : this.getDtid().equals(other.getDtid()))
&& (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))
&& (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime()))
&& (this.getUpdatedby() == null ? other.getUpdatedby() == null : this.getUpdatedby().equals(other.getUpdatedby()))
&& (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
result = prime * result + ((getDtid() == null) ? 0 : getDtid().hashCode());
result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode());
result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode());
result = prime * result + ((getUpdatedby() == null) ? 0 : getUpdatedby().hashCode());
result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", pid=").append(pid);
sb.append(", mobile=").append(mobile);
sb.append(", hid=").append(hid);
sb.append(", did=").append(did);
sb.append(", dtid=").append(dtid);
sb.append(", createdby=").append(createdby);
sb.append(", createdtime=").append(createdtime);
sb.append(", updatedby=").append(updatedby);
sb.append(", updatedTime=").append(updatedTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}