From 8c25a1242f2ccb1e5a8233f1a13cacece5250f9b Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Thu, 7 Apr 2022 12:01:41 +0800 Subject: [PATCH] update --- .../talkonlineweb/domain/LymsPatientAttention.java | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatientAttention.java diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatientAttention.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatientAttention.java new file mode 100644 index 0000000..889e870 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatientAttention.java @@ -0,0 +1,69 @@ +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 lombok.Data; + +/** + * 关注的患者 + * @TableName lyms_patient_attention + */ +@TableName(value ="lyms_patient_attention") +@Data +public class LymsPatientAttention implements Serializable { + /** + * 患者id + */ + @TableField(value = "pid") + private Integer pid; + + /** + * 关注的患者id + */ + @TableField(value = "attention_id") + private Integer attentionId; + + @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; + } + LymsPatientAttention other = (LymsPatientAttention) that; + return (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) + && (this.getAttentionId() == null ? other.getAttentionId() == null : this.getAttentionId().equals(other.getAttentionId())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode()); + result = prime * result + ((getAttentionId() == null) ? 0 : getAttentionId().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", pid=").append(pid); + sb.append(", attentionId=").append(attentionId); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file -- 1.8.3.1