package com.qianwen.smartman.modules.smis.vo; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class EmployeeVO implements Serializable { private static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("主键") private Long id; @ApiModelProperty("所属租户") private String tenantId; @ApiModelProperty("员工编号") private String code; @ApiModelProperty("员工姓名") private String name; @ApiModelProperty("员工邮箱") private String email; @ApiModelProperty("员工电话") private String tel; @ApiModelProperty("员工入职日期") private Date hireDate; @ApiModelProperty("员工工号") private String jobNumber; @ApiModelProperty("PIN码") private String pinCode; @ApiModelProperty("权限id") private String deptId; @ApiModelProperty("账号id") private String userId; @ApiModelProperty("状态") private Integer status; @ApiModelProperty("员工头像") private String avatar; public void setId(final Long id) { this.id = id; } public void setTenantId(final String tenantId) { this.tenantId = tenantId; } public void setCode(final String code) { this.code = code; } public void setName(final String name) { this.name = name; } public void setEmail(final String email) { this.email = email; } public void setTel(final String tel) { this.tel = tel; } public void setHireDate(final Date hireDate) { this.hireDate = hireDate; } public void setJobNumber(final String jobNumber) { this.jobNumber = jobNumber; } public void setPinCode(final String pinCode) { this.pinCode = pinCode; } public void setDeptId(final String deptId) { this.deptId = deptId; } public void setUserId(final String userId) { this.userId = userId; } public void setStatus(final Integer status) { this.status = status; } public void setAvatar(final String avatar) { this.avatar = avatar; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof EmployeeVO) { EmployeeVO other = (EmployeeVO) o; if (other.canEqual(this)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$status = getStatus(); Object other$status = other.getStatus(); if (this$status == null) { if (other$status != null) { return false; } } else if (!this$status.equals(other$status)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$code = getCode(); Object other$code = other.getCode(); if (this$code == null) { if (other$code != null) { return false; } } else if (!this$code.equals(other$code)) { return false; } Object this$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$email = getEmail(); Object other$email = other.getEmail(); if (this$email == null) { if (other$email != null) { return false; } } else if (!this$email.equals(other$email)) { return false; } Object this$tel = getTel(); Object other$tel = other.getTel(); if (this$tel == null) { if (other$tel != null) { return false; } } else if (!this$tel.equals(other$tel)) { return false; } Object this$hireDate = getHireDate(); Object other$hireDate = other.getHireDate(); if (this$hireDate == null) { if (other$hireDate != null) { return false; } } else if (!this$hireDate.equals(other$hireDate)) { return false; } Object this$jobNumber = getJobNumber(); Object other$jobNumber = other.getJobNumber(); if (this$jobNumber == null) { if (other$jobNumber != null) { return false; } } else if (!this$jobNumber.equals(other$jobNumber)) { return false; } Object this$pinCode = getPinCode(); Object other$pinCode = other.getPinCode(); if (this$pinCode == null) { if (other$pinCode != null) { return false; } } else if (!this$pinCode.equals(other$pinCode)) { return false; } Object this$deptId = getDeptId(); Object other$deptId = other.getDeptId(); if (this$deptId == null) { if (other$deptId != null) { return false; } } else if (!this$deptId.equals(other$deptId)) { return false; } Object this$userId = getUserId(); Object other$userId = other.getUserId(); if (this$userId == null) { if (other$userId != null) { return false; } } else if (!this$userId.equals(other$userId)) { return false; } Object this$avatar = getAvatar(); Object other$avatar = other.getAvatar(); return this$avatar == null ? other$avatar == null : this$avatar.equals(other$avatar); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof EmployeeVO; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $status = getStatus(); int result2 = (result * 59) + ($status == null ? 43 : $status.hashCode()); Object $tenantId = getTenantId(); int result3 = (result2 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $code = getCode(); int result4 = (result3 * 59) + ($code == null ? 43 : $code.hashCode()); Object $name = getName(); int result5 = (result4 * 59) + ($name == null ? 43 : $name.hashCode()); Object $email = getEmail(); int result6 = (result5 * 59) + ($email == null ? 43 : $email.hashCode()); Object $tel = getTel(); int result7 = (result6 * 59) + ($tel == null ? 43 : $tel.hashCode()); Object $hireDate = getHireDate(); int result8 = (result7 * 59) + ($hireDate == null ? 43 : $hireDate.hashCode()); Object $jobNumber = getJobNumber(); int result9 = (result8 * 59) + ($jobNumber == null ? 43 : $jobNumber.hashCode()); Object $pinCode = getPinCode(); int result10 = (result9 * 59) + ($pinCode == null ? 43 : $pinCode.hashCode()); Object $deptId = getDeptId(); int result11 = (result10 * 59) + ($deptId == null ? 43 : $deptId.hashCode()); Object $userId = getUserId(); int result12 = (result11 * 59) + ($userId == null ? 43 : $userId.hashCode()); Object $avatar = getAvatar(); return (result12 * 59) + ($avatar == null ? 43 : $avatar.hashCode()); } public String toString() { return "EmployeeVO(id=" + getId() + ", tenantId=" + getTenantId() + ", code=" + getCode() + ", name=" + getName() + ", email=" + getEmail() + ", tel=" + getTel() + ", hireDate=" + getHireDate() + ", jobNumber=" + getJobNumber() + ", pinCode=" + getPinCode() + ", deptId=" + getDeptId() + ", userId=" + getUserId() + ", status=" + getStatus() + ", avatar=" + getAvatar() + ")"; } public Long getId() { return this.id; } public String getTenantId() { return this.tenantId; } public String getCode() { return this.code; } public String getName() { return this.name; } public String getEmail() { return this.email; } public String getTel() { return this.tel; } public Date getHireDate() { return this.hireDate; } public String getJobNumber() { return this.jobNumber; } public String getPinCode() { return this.pinCode; } public String getDeptId() { return this.deptId; } public String getUserId() { return this.userId; } public Integer getStatus() { return this.status; } public String getAvatar() { return this.avatar; } }