|
@@ -0,0 +1,108 @@
|
|
|
+package com.dt.child.dao;
|
|
|
+
|
|
|
+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 lzy_food
|
|
|
+ */
|
|
|
+@TableName(value ="lzy_food")
|
|
|
+@Data
|
|
|
+public class LzyFood implements Serializable {
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @TableId
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 名字
|
|
|
+ */
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 图片
|
|
|
+ */
|
|
|
+ private String img;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 标题
|
|
|
+ */
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 浏览量
|
|
|
+ */
|
|
|
+ private Integer previewCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 点赞量
|
|
|
+ */
|
|
|
+ private Integer saves;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 类型id
|
|
|
+ */
|
|
|
+ private Long typeId;
|
|
|
+
|
|
|
+ @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;
|
|
|
+ }
|
|
|
+ LzyFood other = (LzyFood) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
|
|
+ && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
|
|
|
+ && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
|
|
+ && (this.getPreviewCount() == null ? other.getPreviewCount() == null : this.getPreviewCount().equals(other.getPreviewCount()))
|
|
|
+ && (this.getSaves() == null ? other.getSaves() == null : this.getSaves().equals(other.getSaves()))
|
|
|
+ && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
|
|
+ result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
|
|
|
+ result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
|
|
+ result = prime * result + ((getPreviewCount() == null) ? 0 : getPreviewCount().hashCode());
|
|
|
+ result = prime * result + ((getSaves() == null) ? 0 : getSaves().hashCode());
|
|
|
+ result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", name=").append(name);
|
|
|
+ sb.append(", img=").append(img);
|
|
|
+ sb.append(", title=").append(title);
|
|
|
+ sb.append(", previewCount=").append(previewCount);
|
|
|
+ sb.append(", saves=").append(saves);
|
|
|
+ sb.append(", typeId=").append(typeId);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|