package com.qianwen.smartman.modules.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; @ApiModel(value = "Dept", description = "Dept对象") @TableName("blade_dept") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/Dept.class */ public class Dept implements Serializable { private static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("主键") @TableId(value = "id", type = IdType.ASSIGN_ID) private Long id; @ApiModelProperty("租户ID") private String tenantId; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("父主键") private Long parentId; @ApiModelProperty("机构全称") private String fullName; @ApiModelProperty("机构名") private String deptName; @ApiModelProperty("祖级机构主键") private String ancestors; @ApiModelProperty("机构类型") private Integer deptCategory; @ApiModelProperty("排序") private Integer sort; @ApiModelProperty("备注") private String remark; @TableLogic @ApiModelProperty("是否已删除") private Integer isDeleted; public void setId(final Long id) { this.id = id; } public void setTenantId(final String tenantId) { this.tenantId = tenantId; } public void setParentId(final Long parentId) { this.parentId = parentId; } public void setFullName(final String fullName) { this.fullName = fullName; } public void setDeptName(final String deptName) { this.deptName = deptName; } public void setAncestors(final String ancestors) { this.ancestors = ancestors; } public void setDeptCategory(final Integer deptCategory) { this.deptCategory = deptCategory; } public void setSort(final Integer sort) { this.sort = sort; } public void setRemark(final String remark) { this.remark = remark; } public void setIsDeleted(final Integer isDeleted) { this.isDeleted = isDeleted; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof Dept) { Dept other = (Dept) 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$parentId = getParentId(); Object other$parentId = other.getParentId(); if (this$parentId == null) { if (other$parentId != null) { return false; } } else if (!this$parentId.equals(other$parentId)) { return false; } Object this$deptCategory = getDeptCategory(); Object other$deptCategory = other.getDeptCategory(); if (this$deptCategory == null) { if (other$deptCategory != null) { return false; } } else if (!this$deptCategory.equals(other$deptCategory)) { return false; } Object this$sort = getSort(); Object other$sort = other.getSort(); if (this$sort == null) { if (other$sort != null) { return false; } } else if (!this$sort.equals(other$sort)) { return false; } Object this$isDeleted = getIsDeleted(); Object other$isDeleted = other.getIsDeleted(); if (this$isDeleted == null) { if (other$isDeleted != null) { return false; } } else if (!this$isDeleted.equals(other$isDeleted)) { 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$fullName = getFullName(); Object other$fullName = other.getFullName(); if (this$fullName == null) { if (other$fullName != null) { return false; } } else if (!this$fullName.equals(other$fullName)) { return false; } Object this$deptName = getDeptName(); Object other$deptName = other.getDeptName(); if (this$deptName == null) { if (other$deptName != null) { return false; } } else if (!this$deptName.equals(other$deptName)) { return false; } Object this$ancestors = getAncestors(); Object other$ancestors = other.getAncestors(); if (this$ancestors == null) { if (other$ancestors != null) { return false; } } else if (!this$ancestors.equals(other$ancestors)) { return false; } Object this$remark = getRemark(); Object other$remark = other.getRemark(); return this$remark == null ? other$remark == null : this$remark.equals(other$remark); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof Dept; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $parentId = getParentId(); int result2 = (result * 59) + ($parentId == null ? 43 : $parentId.hashCode()); Object $deptCategory = getDeptCategory(); int result3 = (result2 * 59) + ($deptCategory == null ? 43 : $deptCategory.hashCode()); Object $sort = getSort(); int result4 = (result3 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $isDeleted = getIsDeleted(); int result5 = (result4 * 59) + ($isDeleted == null ? 43 : $isDeleted.hashCode()); Object $tenantId = getTenantId(); int result6 = (result5 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $fullName = getFullName(); int result7 = (result6 * 59) + ($fullName == null ? 43 : $fullName.hashCode()); Object $deptName = getDeptName(); int result8 = (result7 * 59) + ($deptName == null ? 43 : $deptName.hashCode()); Object $ancestors = getAncestors(); int result9 = (result8 * 59) + ($ancestors == null ? 43 : $ancestors.hashCode()); Object $remark = getRemark(); return (result9 * 59) + ($remark == null ? 43 : $remark.hashCode()); } public String toString() { return "Dept(id=" + getId() + ", tenantId=" + getTenantId() + ", parentId=" + getParentId() + ", fullName=" + getFullName() + ", deptName=" + getDeptName() + ", ancestors=" + getAncestors() + ", deptCategory=" + getDeptCategory() + ", sort=" + getSort() + ", remark=" + getRemark() + ", isDeleted=" + getIsDeleted() + ")"; } public Long getId() { return this.id; } public String getTenantId() { return this.tenantId; } public Long getParentId() { return this.parentId; } public String getFullName() { return this.fullName; } public String getDeptName() { return this.deptName; } public String getAncestors() { return this.ancestors; } public Integer getDeptCategory() { return this.deptCategory; } public Integer getSort() { return this.sort; } public String getRemark() { return this.remark; } public Integer getIsDeleted() { return this.isDeleted; } }