|
@@ -0,0 +1,124 @@
|
|
|
|
+package com.dt.child.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 lzy_shiwu
|
|
|
|
+ */
|
|
|
|
+@TableName(value ="lzy_shiwu")
|
|
|
|
+@Data
|
|
|
|
+public class LzyShiwu implements Serializable {
|
|
|
|
+ /**
|
|
|
|
+ * id
|
|
|
|
+ */
|
|
|
|
+ @TableId
|
|
|
|
+ private Long id;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 名字
|
|
|
|
+ */
|
|
|
|
+ private String name;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 图片
|
|
|
|
+ */
|
|
|
|
+ private String img;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 详情
|
|
|
|
+ */
|
|
|
|
+ private String details;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 类型 1能吃 2不推荐吃 3不能吃
|
|
|
|
+ */
|
|
|
|
+ private Integer isPregnant;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 类型 1能吃 2不推荐吃 3不能吃
|
|
|
|
+ */
|
|
|
|
+ private Integer isPostpartum;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 类型 1能吃 2不推荐吃 3不能吃
|
|
|
|
+ */
|
|
|
|
+ private Integer isBreastfeeding;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 类型 1能吃 2不推荐吃 3不能吃
|
|
|
|
+ */
|
|
|
|
+ private Integer isSixMonthOld;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 食物类型
|
|
|
|
+ */
|
|
|
|
+ private Integer shiwuType;
|
|
|
|
+
|
|
|
|
+ @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;
|
|
|
|
+ }
|
|
|
|
+ LzyShiwu other = (LzyShiwu) 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.getDetails() == null ? other.getDetails() == null : this.getDetails().equals(other.getDetails()))
|
|
|
|
+ && (this.getIsPregnant() == null ? other.getIsPregnant() == null : this.getIsPregnant().equals(other.getIsPregnant()))
|
|
|
|
+ && (this.getIsPostpartum() == null ? other.getIsPostpartum() == null : this.getIsPostpartum().equals(other.getIsPostpartum()))
|
|
|
|
+ && (this.getIsBreastfeeding() == null ? other.getIsBreastfeeding() == null : this.getIsBreastfeeding().equals(other.getIsBreastfeeding()))
|
|
|
|
+ && (this.getIsSixMonthOld() == null ? other.getIsSixMonthOld() == null : this.getIsSixMonthOld().equals(other.getIsSixMonthOld()))
|
|
|
|
+ && (this.getShiwuType() == null ? other.getShiwuType() == null : this.getShiwuType().equals(other.getShiwuType()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @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 + ((getDetails() == null) ? 0 : getDetails().hashCode());
|
|
|
|
+ result = prime * result + ((getIsPregnant() == null) ? 0 : getIsPregnant().hashCode());
|
|
|
|
+ result = prime * result + ((getIsPostpartum() == null) ? 0 : getIsPostpartum().hashCode());
|
|
|
|
+ result = prime * result + ((getIsBreastfeeding() == null) ? 0 : getIsBreastfeeding().hashCode());
|
|
|
|
+ result = prime * result + ((getIsSixMonthOld() == null) ? 0 : getIsSixMonthOld().hashCode());
|
|
|
|
+ result = prime * result + ((getShiwuType() == null) ? 0 : getShiwuType().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(", details=").append(details);
|
|
|
|
+ sb.append(", isPregnant=").append(isPregnant);
|
|
|
|
+ sb.append(", isPostpartum=").append(isPostpartum);
|
|
|
|
+ sb.append(", isBreastfeeding=").append(isBreastfeeding);
|
|
|
|
+ sb.append(", isSixMonthOld=").append(isSixMonthOld);
|
|
|
|
+ sb.append(", shiwuType=").append(shiwuType);
|
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
|
+ sb.append("]");
|
|
|
|
+ return sb.toString();
|
|
|
|
+ }
|
|
|
|
+}
|