package cn.com.oa.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    private Long universalid;

    /**
     * 
     */
    private String userName;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private Integer userState;

    /**
     * 
     */
    private String deleteSymbol;

    /**
     * 
     */
    private String groupid;

    /**
     * 
     */
    private String contactTel1;

    /**
     * 
     */
    private String fixedPhone;

    /**
     * 
     */
    private String desktopPhone;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String sex;

    /**
     * 
     */
    private String position;

    /**
     * 
     */
    private String birthday;

    /**
     * 
     */
    private String fax;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    private String qqnum;

    /**
     * 
     */
    private String msnnum;

    /**
     * 
     */
    private String address;

    /**
     * 
     */
    private String postcode;

    /**
     * 
     */
    private String homeno;

    /**
     * 
     */
    private Long companyid;

    /**
     * 
     */
    private Long pos;

    /**
     * 
     */
    private Long logintype;

    /**
     * 
     */
    private String loginstyle;

    /**
     * 
     */
    private Date createtime;

    /**
     * 
     */
    private Long unitid;

    /**
     * 
     */
    private String phoneCode;

    /**
     * 个人简介
     */
    private String intro;

    /**
     * 
     */
    private String clientid;

    @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;
        }
        User other = (User) that;
        return (this.getUniversalid() == null ? other.getUniversalid() == null : this.getUniversalid().equals(other.getUniversalid()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getUserState() == null ? other.getUserState() == null : this.getUserState().equals(other.getUserState()))
            && (this.getDeleteSymbol() == null ? other.getDeleteSymbol() == null : this.getDeleteSymbol().equals(other.getDeleteSymbol()))
            && (this.getGroupid() == null ? other.getGroupid() == null : this.getGroupid().equals(other.getGroupid()))
            && (this.getContactTel1() == null ? other.getContactTel1() == null : this.getContactTel1().equals(other.getContactTel1()))
            && (this.getFixedPhone() == null ? other.getFixedPhone() == null : this.getFixedPhone().equals(other.getFixedPhone()))
            && (this.getDesktopPhone() == null ? other.getDesktopPhone() == null : this.getDesktopPhone().equals(other.getDesktopPhone()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getFax() == null ? other.getFax() == null : this.getFax().equals(other.getFax()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getQqnum() == null ? other.getQqnum() == null : this.getQqnum().equals(other.getQqnum()))
            && (this.getMsnnum() == null ? other.getMsnnum() == null : this.getMsnnum().equals(other.getMsnnum()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPostcode() == null ? other.getPostcode() == null : this.getPostcode().equals(other.getPostcode()))
            && (this.getHomeno() == null ? other.getHomeno() == null : this.getHomeno().equals(other.getHomeno()))
            && (this.getCompanyid() == null ? other.getCompanyid() == null : this.getCompanyid().equals(other.getCompanyid()))
            && (this.getPos() == null ? other.getPos() == null : this.getPos().equals(other.getPos()))
            && (this.getLogintype() == null ? other.getLogintype() == null : this.getLogintype().equals(other.getLogintype()))
            && (this.getLoginstyle() == null ? other.getLoginstyle() == null : this.getLoginstyle().equals(other.getLoginstyle()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUnitid() == null ? other.getUnitid() == null : this.getUnitid().equals(other.getUnitid()))
            && (this.getPhoneCode() == null ? other.getPhoneCode() == null : this.getPhoneCode().equals(other.getPhoneCode()))
            && (this.getIntro() == null ? other.getIntro() == null : this.getIntro().equals(other.getIntro()))
            && (this.getClientid() == null ? other.getClientid() == null : this.getClientid().equals(other.getClientid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUniversalid() == null) ? 0 : getUniversalid().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getUserState() == null) ? 0 : getUserState().hashCode());
        result = prime * result + ((getDeleteSymbol() == null) ? 0 : getDeleteSymbol().hashCode());
        result = prime * result + ((getGroupid() == null) ? 0 : getGroupid().hashCode());
        result = prime * result + ((getContactTel1() == null) ? 0 : getContactTel1().hashCode());
        result = prime * result + ((getFixedPhone() == null) ? 0 : getFixedPhone().hashCode());
        result = prime * result + ((getDesktopPhone() == null) ? 0 : getDesktopPhone().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getFax() == null) ? 0 : getFax().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getQqnum() == null) ? 0 : getQqnum().hashCode());
        result = prime * result + ((getMsnnum() == null) ? 0 : getMsnnum().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPostcode() == null) ? 0 : getPostcode().hashCode());
        result = prime * result + ((getHomeno() == null) ? 0 : getHomeno().hashCode());
        result = prime * result + ((getCompanyid() == null) ? 0 : getCompanyid().hashCode());
        result = prime * result + ((getPos() == null) ? 0 : getPos().hashCode());
        result = prime * result + ((getLogintype() == null) ? 0 : getLogintype().hashCode());
        result = prime * result + ((getLoginstyle() == null) ? 0 : getLoginstyle().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUnitid() == null) ? 0 : getUnitid().hashCode());
        result = prime * result + ((getPhoneCode() == null) ? 0 : getPhoneCode().hashCode());
        result = prime * result + ((getIntro() == null) ? 0 : getIntro().hashCode());
        result = prime * result + ((getClientid() == null) ? 0 : getClientid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", universalid=").append(universalid);
        sb.append(", userName=").append(userName);
        sb.append(", password=").append(password);
        sb.append(", userState=").append(userState);
        sb.append(", deleteSymbol=").append(deleteSymbol);
        sb.append(", groupid=").append(groupid);
        sb.append(", contactTel1=").append(contactTel1);
        sb.append(", fixedPhone=").append(fixedPhone);
        sb.append(", desktopPhone=").append(desktopPhone);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", position=").append(position);
        sb.append(", birthday=").append(birthday);
        sb.append(", fax=").append(fax);
        sb.append(", email=").append(email);
        sb.append(", qqnum=").append(qqnum);
        sb.append(", msnnum=").append(msnnum);
        sb.append(", address=").append(address);
        sb.append(", postcode=").append(postcode);
        sb.append(", homeno=").append(homeno);
        sb.append(", companyid=").append(companyid);
        sb.append(", pos=").append(pos);
        sb.append(", logintype=").append(logintype);
        sb.append(", loginstyle=").append(loginstyle);
        sb.append(", createtime=").append(createtime);
        sb.append(", unitid=").append(unitid);
        sb.append(", phoneCode=").append(phoneCode);
        sb.append(", intro=").append(intro);
        sb.append(", clientid=").append(clientid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}