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_patient
*/
@TableName(value ="lyms_patient")
@Data
public class LymsPatient implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 患者姓名
*/
@TableField(value = "pname")
private String pname;
/**
* 身份证号
*/
@TableField(value = "idno")
private String idno;
/**
* 登录密码
*/
@TableField(value = "ppasswd")
private String ppasswd;
/**
* 性别
*/
@TableField(value = "sex")
private Integer sex;
/**
* 问诊卡数量
*/
@TableField(value = "ccnt")
private Integer ccnt;
/**
* 环信对应标识
*/
@TableField(value = "hxid")
private String hxid;
@TableField(value = "islogin")
private Integer islogin;//是否登录过
/**
* 创建人
*/
@TableField(value = "createdby")
private Integer createdby;
/**
* 创建时间
*/
@TableField(value = "createdtime")
private Date createdtime;
/**
* 更新人
*/
@TableField(value = "updatedby")
private String updatedby;
/**
* 更新时间
*/
@TableField(value = "updatedtime")
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;
}
LymsPatient other = (LymsPatient) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPname() == null ? other.getPname() == null : this.getPname().equals(other.getPname()))
&& (this.getIdno() == null ? other.getIdno() == null : this.getIdno().equals(other.getIdno()))
&& (this.getPpasswd() == null ? other.getPpasswd() == null : this.getPpasswd().equals(other.getPpasswd()))
&& (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
&& (this.getCcnt() == null ? other.getCcnt() == null : this.getCcnt().equals(other.getCcnt()))
&& (this.getHxid() == null ? other.getHxid() == null : this.getHxid().equals(other.getHxid()))
&& (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 + ((getPname() == null) ? 0 : getPname().hashCode());
result = prime * result + ((getIdno() == null) ? 0 : getIdno().hashCode());
result = prime * result + ((getPpasswd() == null) ? 0 : getPpasswd().hashCode());
result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
result = prime * result + ((getCcnt() == null) ? 0 : getCcnt().hashCode());
result = prime * result + ((getHxid() == null) ? 0 : getHxid().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(", pname=").append(pname);
sb.append(", idno=").append(idno);
sb.append(", ppasswd=").append(ppasswd);
sb.append(", sex=").append(sex);
sb.append(", ccnt=").append(ccnt);
sb.append(", hxid=").append(hxid);
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();
}
}