huliguo
2 天以前 d8143b9121bbe941f116230eaa5524ab2cc12a66
src/main/java/com/linghu/model/entity/User.java
@@ -1,5 +1,6 @@
package com.linghu.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@@ -9,6 +10,7 @@
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
@@ -21,7 +23,7 @@
    /**
     * 用户id
     */
    @TableId
    @TableId(type = IdType.AUTO)
    private Integer user_id;
    /**
@@ -47,7 +49,19 @@
    /**
     * 手机号
     */
    @ApiModelProperty(hidden = true)
    private Integer phone;
    /**
     * 分组id
     */
    private Integer sectionalization_id;
    /**
     * 状态
     */
    private String status;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
@@ -71,7 +85,10 @@
                        : this.getUser_email().equals(other.getUser_email()))
                && (this.getPassword() == null ? other.getPassword() == null
                        : this.getPassword().equals(other.getPassword()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
                && (this.getSectionalization_id() == null ? other.getSectionalization_id() == null : this.getSectionalization_id().equals(other.getSectionalization_id()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                ;
    }
    @Override
@@ -83,6 +100,8 @@
        result = prime * result + ((getUser_email() == null) ? 0 : getUser_email().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getSectionalization_id() == null) ? 0 : getSectionalization_id().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }
@@ -97,6 +116,8 @@
        sb.append(", user_email=").append(user_email);
        sb.append(", password=").append(password);
        sb.append(", phone=").append(phone);
        sb.append(", sectionalization_id=").append(sectionalization_id);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();