LymsArticle.java 4.9 KB
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
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_article
*/
@TableName(value ="lyms_article")
@Data
public class LymsArticle implements Serializable {
/**
*
*/
@TableId(value = "aid", type = IdType.AUTO)
private Integer aid;

/**
* 科室id
*/
@TableField(value = "did")
private Integer did;

/**
* 疾病id
*/
@TableField(value = "iid")
private Integer iid;

/**
* 文章标题
*/
@TableField(value = "title")
private String title;

/**
* 文章内容
*/
@TableField(value = "content")
private String content;

/**
* 是否发布. 0,否;1是
*/
@TableField(value = "stat")
private Byte stat;

/**
* 创建人
*/
@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(value = "cname")
private String cname;//创建人姓名
@TableField(value = "uname")
private String uname;//更新人姓名

@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;
}
LymsArticle other = (LymsArticle) that;
return (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid()))
&& (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
&& (this.getIid() == null ? other.getIid() == null : this.getIid().equals(other.getIid()))
&& (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
&& (this.getStat() == null ? other.getStat() == null : this.getStat().equals(other.getStat()))
&& (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 + ((getAid() == null) ? 0 : getAid().hashCode());
result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
result = prime * result + ((getIid() == null) ? 0 : getIid().hashCode());
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
result = prime * result + ((getStat() == null) ? 0 : getStat().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(", aid=").append(aid);
sb.append(", did=").append(did);
sb.append(", iid=").append(iid);
sb.append(", title=").append(title);
sb.append(", content=").append(content);
sb.append(", stat=").append(stat);
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();
}
}