Commit cf5329517f1a3c1aac71537c30f68e17a90a9578
1 parent
25ae910c06
Exists in
master
update
Showing 1 changed file with 203 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPushIllnessMsg.java
View file @
cf53295
| 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 java.util.Date; | |
| 9 | +import lombok.Data; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * 疾病分类推送数据(1普通疾病,2慢性病) | |
| 13 | +慢性病:确诊后30天推送一次,间隔90天进行第二次推送。 | |
| 14 | +普通疾病:确诊15天后 推送。 | |
| 15 | + * @TableName lyms_push_illness_msg | |
| 16 | + */ | |
| 17 | +@TableName(value ="lyms_push_illness_msg") | |
| 18 | +@Data | |
| 19 | +public class LymsPushIllnessMsg implements Serializable { | |
| 20 | + /** | |
| 21 | + * 推送记录-主键自增id | |
| 22 | + */ | |
| 23 | + @TableId(value = "id", type = IdType.AUTO) | |
| 24 | + private Integer id; | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * 推送的患者id | |
| 28 | + */ | |
| 29 | + @TableField(value = "pid") | |
| 30 | + private Integer pid; | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * 患者手机号/患者小程序登录账号 | |
| 34 | + */ | |
| 35 | + @TableField(value = "phone") | |
| 36 | + private String phone; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * 患者小程序登录密码 | |
| 40 | + */ | |
| 41 | + @TableField(value = "passwd") | |
| 42 | + private String passwd; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * 患者公众号id | |
| 46 | + */ | |
| 47 | + @TableField(value = "gzopenid") | |
| 48 | + private String gzopenid; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * 患者姓名 | |
| 52 | + */ | |
| 53 | + @TableField(value = "pname") | |
| 54 | + private String pname; | |
| 55 | + /** | |
| 56 | + * 患者病例id | |
| 57 | + */ | |
| 58 | + @TableField(value = "pcid") | |
| 59 | + private Integer pcid; | |
| 60 | + /** | |
| 61 | + * 就诊医院 | |
| 62 | + */ | |
| 63 | + @TableField(value = "hname") | |
| 64 | + private String hname; | |
| 65 | + /** | |
| 66 | + * 就诊科室 | |
| 67 | + */ | |
| 68 | + @TableField(value = "dname") | |
| 69 | + private String dname; | |
| 70 | + /** | |
| 71 | + * 就诊医生 | |
| 72 | + */ | |
| 73 | + @TableField(value = "dtname") | |
| 74 | + private String dtname; | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * 疾病id | |
| 78 | + */ | |
| 79 | + @TableField(value = "code") | |
| 80 | + private Integer code; | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * 疾病名称 | |
| 84 | + */ | |
| 85 | + @TableField(value = "value") | |
| 86 | + private String value; | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * 疾病分类:1普通疾病,2慢性病 | |
| 90 | + */ | |
| 91 | + @TableField(value = "illness_type") | |
| 92 | + private Integer illnessType; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * 慢性病:确诊后30天推送一次,间隔90天进行第二次推送。 | |
| 96 | + */ | |
| 97 | + @TableField(value = "push_count") | |
| 98 | + private Integer pushCount; | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * 推送内容 | |
| 102 | + */ | |
| 103 | + @TableField(value = "content") | |
| 104 | + private String content; | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * 推送时间 | |
| 108 | + */ | |
| 109 | + @TableField(value = "push_time") | |
| 110 | + private Date pushTime; | |
| 111 | + | |
| 112 | + /** | |
| 113 | + * 推送状态:0待推送。1:成功,2 失败 | |
| 114 | + */ | |
| 115 | + @TableField(value = "push_type") | |
| 116 | + private Integer pushType; | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * 推送结果信息如:失败原因 | |
| 120 | + */ | |
| 121 | + @TableField(value = "push_result") | |
| 122 | + private String pushResult; | |
| 123 | + | |
| 124 | + /** | |
| 125 | + * 数据生成时间 | |
| 126 | + */ | |
| 127 | + @TableField(value = "created_time") | |
| 128 | + private Date createdTime; | |
| 129 | + | |
| 130 | + @TableField(exist = false) | |
| 131 | + private static final long serialVersionUID = 1L; | |
| 132 | + | |
| 133 | + @Override | |
| 134 | + public boolean equals(Object that) { | |
| 135 | + if (this == that) { | |
| 136 | + return true; | |
| 137 | + } | |
| 138 | + if (that == null) { | |
| 139 | + return false; | |
| 140 | + } | |
| 141 | + if (getClass() != that.getClass()) { | |
| 142 | + return false; | |
| 143 | + } | |
| 144 | + LymsPushIllnessMsg other = (LymsPushIllnessMsg) that; | |
| 145 | + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | |
| 146 | + && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) | |
| 147 | + && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) | |
| 148 | + && (this.getPasswd() == null ? other.getPasswd() == null : this.getPasswd().equals(other.getPasswd())) | |
| 149 | + && (this.getGzopenid() == null ? other.getGzopenid() == null : this.getGzopenid().equals(other.getGzopenid())) | |
| 150 | + && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) | |
| 151 | + && (this.getIllnessType() == null ? other.getIllnessType() == null : this.getIllnessType().equals(other.getIllnessType())) | |
| 152 | + && (this.getPushCount() == null ? other.getPushCount() == null : this.getPushCount().equals(other.getPushCount())) | |
| 153 | + && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent())) | |
| 154 | + && (this.getPushTime() == null ? other.getPushTime() == null : this.getPushTime().equals(other.getPushTime())) | |
| 155 | + && (this.getPushType() == null ? other.getPushType() == null : this.getPushType().equals(other.getPushType())) | |
| 156 | + && (this.getPushResult() == null ? other.getPushResult() == null : this.getPushResult().equals(other.getPushResult())) | |
| 157 | + && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())); | |
| 158 | + } | |
| 159 | + | |
| 160 | + @Override | |
| 161 | + public int hashCode() { | |
| 162 | + final int prime = 31; | |
| 163 | + int result = 1; | |
| 164 | + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | |
| 165 | + result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode()); | |
| 166 | + result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); | |
| 167 | + result = prime * result + ((getPasswd() == null) ? 0 : getPasswd().hashCode()); | |
| 168 | + result = prime * result + ((getGzopenid() == null) ? 0 : getGzopenid().hashCode()); | |
| 169 | + result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); | |
| 170 | + result = prime * result + ((getIllnessType() == null) ? 0 : getIllnessType().hashCode()); | |
| 171 | + result = prime * result + ((getPushCount() == null) ? 0 : getPushCount().hashCode()); | |
| 172 | + result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode()); | |
| 173 | + result = prime * result + ((getPushTime() == null) ? 0 : getPushTime().hashCode()); | |
| 174 | + result = prime * result + ((getPushType() == null) ? 0 : getPushType().hashCode()); | |
| 175 | + result = prime * result + ((getPushResult() == null) ? 0 : getPushResult().hashCode()); | |
| 176 | + result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); | |
| 177 | + return result; | |
| 178 | + } | |
| 179 | + | |
| 180 | + @Override | |
| 181 | + public String toString() { | |
| 182 | + StringBuilder sb = new StringBuilder(); | |
| 183 | + sb.append(getClass().getSimpleName()); | |
| 184 | + sb.append(" ["); | |
| 185 | + sb.append("Hash = ").append(hashCode()); | |
| 186 | + sb.append(", id=").append(id); | |
| 187 | + sb.append(", pid=").append(pid); | |
| 188 | + sb.append(", phone=").append(phone); | |
| 189 | + sb.append(", passwd=").append(passwd); | |
| 190 | + sb.append(", gzopenid=").append(gzopenid); | |
| 191 | + sb.append(", code=").append(code); | |
| 192 | + sb.append(", illnessType=").append(illnessType); | |
| 193 | + sb.append(", pushCount=").append(pushCount); | |
| 194 | + sb.append(", content=").append(content); | |
| 195 | + sb.append(", pushTime=").append(pushTime); | |
| 196 | + sb.append(", pushType=").append(pushType); | |
| 197 | + sb.append(", pushResult=").append(pushResult); | |
| 198 | + sb.append(", createdTime=").append(createdTime); | |
| 199 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 200 | + sb.append("]"); | |
| 201 | + return sb.toString(); | |
| 202 | + } | |
| 203 | +} |