Commit b9ab82ad49da5bf6bfc897587905e11f326ffb7a
1 parent
4f22dd88
fix: history漏提交
Showing
1 changed file
with
132 additions
and
0 deletions
trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarUserOrderMessageHistory.java
0 → 100644
| 1 | +package com.trash.garbage.pojo.domain; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | |
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | |
| 6 | +import java.io.Serializable; | |
| 7 | +import java.util.Date; | |
| 8 | +import lombok.Data; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * | |
| 12 | + * @TableName gar_user_order_message_history | |
| 13 | + */ | |
| 14 | +@TableName(value ="gar_user_order_message_history") | |
| 15 | +@Data | |
| 16 | +public class GarUserOrderMessageHistory implements Serializable { | |
| 17 | + /** | |
| 18 | + * | |
| 19 | + */ | |
| 20 | + @TableId | |
| 21 | + private String garId; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * | |
| 25 | + */ | |
| 26 | + private String garContent; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * | |
| 30 | + */ | |
| 31 | + private Date garCreateTime; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * | |
| 35 | + */ | |
| 36 | + private Date garUpdateTime; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * | |
| 40 | + */ | |
| 41 | + private String garCreateBy; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * | |
| 45 | + */ | |
| 46 | + private String garUpdateBy; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * | |
| 50 | + */ | |
| 51 | + private String garRemark; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * | |
| 55 | + */ | |
| 56 | + private String garUserId; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * | |
| 60 | + */ | |
| 61 | + private String garUserTel; | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * 已读|未读 | |
| 65 | + */ | |
| 66 | + private Integer garMessageState; | |
| 67 | + | |
| 68 | + @TableField(exist = false) | |
| 69 | + private static final long serialVersionUID = 1L; | |
| 70 | + | |
| 71 | + @Override | |
| 72 | + public boolean equals(Object that) { | |
| 73 | + if (this == that) { | |
| 74 | + return true; | |
| 75 | + } | |
| 76 | + if (that == null) { | |
| 77 | + return false; | |
| 78 | + } | |
| 79 | + if (getClass() != that.getClass()) { | |
| 80 | + return false; | |
| 81 | + } | |
| 82 | + GarUserOrderMessageHistory other = (GarUserOrderMessageHistory) that; | |
| 83 | + return (this.getGarId() == null ? other.getGarId() == null : this.getGarId().equals(other.getGarId())) | |
| 84 | + && (this.getGarContent() == null ? other.getGarContent() == null : this.getGarContent().equals(other.getGarContent())) | |
| 85 | + && (this.getGarCreateTime() == null ? other.getGarCreateTime() == null : this.getGarCreateTime().equals(other.getGarCreateTime())) | |
| 86 | + && (this.getGarUpdateTime() == null ? other.getGarUpdateTime() == null : this.getGarUpdateTime().equals(other.getGarUpdateTime())) | |
| 87 | + && (this.getGarCreateBy() == null ? other.getGarCreateBy() == null : this.getGarCreateBy().equals(other.getGarCreateBy())) | |
| 88 | + && (this.getGarUpdateBy() == null ? other.getGarUpdateBy() == null : this.getGarUpdateBy().equals(other.getGarUpdateBy())) | |
| 89 | + && (this.getGarRemark() == null ? other.getGarRemark() == null : this.getGarRemark().equals(other.getGarRemark())) | |
| 90 | + && (this.getGarUserId() == null ? other.getGarUserId() == null : this.getGarUserId().equals(other.getGarUserId())) | |
| 91 | + && (this.getGarUserTel() == null ? other.getGarUserTel() == null : this.getGarUserTel().equals(other.getGarUserTel())) | |
| 92 | + && (this.getGarMessageState() == null ? other.getGarMessageState() == null : this.getGarMessageState().equals(other.getGarMessageState())); | |
| 93 | + } | |
| 94 | + | |
| 95 | + @Override | |
| 96 | + public int hashCode() { | |
| 97 | + final int prime = 31; | |
| 98 | + int result = 1; | |
| 99 | + result = prime * result + ((getGarId() == null) ? 0 : getGarId().hashCode()); | |
| 100 | + result = prime * result + ((getGarContent() == null) ? 0 : getGarContent().hashCode()); | |
| 101 | + result = prime * result + ((getGarCreateTime() == null) ? 0 : getGarCreateTime().hashCode()); | |
| 102 | + result = prime * result + ((getGarUpdateTime() == null) ? 0 : getGarUpdateTime().hashCode()); | |
| 103 | + result = prime * result + ((getGarCreateBy() == null) ? 0 : getGarCreateBy().hashCode()); | |
| 104 | + result = prime * result + ((getGarUpdateBy() == null) ? 0 : getGarUpdateBy().hashCode()); | |
| 105 | + result = prime * result + ((getGarRemark() == null) ? 0 : getGarRemark().hashCode()); | |
| 106 | + result = prime * result + ((getGarUserId() == null) ? 0 : getGarUserId().hashCode()); | |
| 107 | + result = prime * result + ((getGarUserTel() == null) ? 0 : getGarUserTel().hashCode()); | |
| 108 | + result = prime * result + ((getGarMessageState() == null) ? 0 : getGarMessageState().hashCode()); | |
| 109 | + return result; | |
| 110 | + } | |
| 111 | + | |
| 112 | + @Override | |
| 113 | + public String toString() { | |
| 114 | + StringBuilder sb = new StringBuilder(); | |
| 115 | + sb.append(getClass().getSimpleName()); | |
| 116 | + sb.append(" ["); | |
| 117 | + sb.append("Hash = ").append(hashCode()); | |
| 118 | + sb.append(", garId=").append(garId); | |
| 119 | + sb.append(", garContent=").append(garContent); | |
| 120 | + sb.append(", garCreateTime=").append(garCreateTime); | |
| 121 | + sb.append(", garUpdateTime=").append(garUpdateTime); | |
| 122 | + sb.append(", garCreateBy=").append(garCreateBy); | |
| 123 | + sb.append(", garUpdateBy=").append(garUpdateBy); | |
| 124 | + sb.append(", garRemark=").append(garRemark); | |
| 125 | + sb.append(", garUserId=").append(garUserId); | |
| 126 | + sb.append(", garUserTel=").append(garUserTel); | |
| 127 | + sb.append(", garMessageState=").append(garMessageState); | |
| 128 | + sb.append(", serialVersionUID=").append(serialVersionUID); | |
| 129 | + sb.append("]"); | |
| 130 | + return sb.toString(); | |
| 131 | + } | |
| 132 | +} | |
| 0 | 133 | \ No newline at end of file | ... | ... |