Commit 8c25a1242f2ccb1e5a8233f1a13cacece5250f9b

Authored by shiyang
1 parent 6abbd302d6
Exists in master and in 1 other branch dev

update

Showing 1 changed file with 69 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatientAttention.java View file @ 8c25a12
  1 +package com.lyms.talkonlineweb.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import lombok.Data;
  9 +
  10 +/**
  11 + * 关注的患者
  12 + * @TableName lyms_patient_attention
  13 + */
  14 +@TableName(value ="lyms_patient_attention")
  15 +@Data
  16 +public class LymsPatientAttention implements Serializable {
  17 + /**
  18 + * 患者id
  19 + */
  20 + @TableField(value = "pid")
  21 + private Integer pid;
  22 +
  23 + /**
  24 + * 关注的患者id
  25 + */
  26 + @TableField(value = "attention_id")
  27 + private Integer attentionId;
  28 +
  29 + @TableField(exist = false)
  30 + private static final long serialVersionUID = 1L;
  31 +
  32 + @Override
  33 + public boolean equals(Object that) {
  34 + if (this == that) {
  35 + return true;
  36 + }
  37 + if (that == null) {
  38 + return false;
  39 + }
  40 + if (getClass() != that.getClass()) {
  41 + return false;
  42 + }
  43 + LymsPatientAttention other = (LymsPatientAttention) that;
  44 + return (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
  45 + && (this.getAttentionId() == null ? other.getAttentionId() == null : this.getAttentionId().equals(other.getAttentionId()));
  46 + }
  47 +
  48 + @Override
  49 + public int hashCode() {
  50 + final int prime = 31;
  51 + int result = 1;
  52 + result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
  53 + result = prime * result + ((getAttentionId() == null) ? 0 : getAttentionId().hashCode());
  54 + return result;
  55 + }
  56 +
  57 + @Override
  58 + public String toString() {
  59 + StringBuilder sb = new StringBuilder();
  60 + sb.append(getClass().getSimpleName());
  61 + sb.append(" [");
  62 + sb.append("Hash = ").append(hashCode());
  63 + sb.append(", pid=").append(pid);
  64 + sb.append(", attentionId=").append(attentionId);
  65 + sb.append(", serialVersionUID=").append(serialVersionUID);
  66 + sb.append("]");
  67 + return sb.toString();
  68 + }
  69 +}