package com.qianwen.smartman.modules.system.entity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.qianwen.core.mp.base.BaseEntity; @ApiModel(value = "CustomTemplateFieldRelation对象", description = "模板与字段关系表") @TableName("blade_custom_field_relation") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/CustomTemplateFieldRelation.class */ public class CustomTemplateFieldRelation extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("所属租户") private String tenantId; @ApiModelProperty("模板id") private Long templateId; @ApiModelProperty("字段id") private Long fieldId; @ApiModelProperty("排序") private Integer sort; @ApiModelProperty("配置类型 1:新建页,2:编辑页,3:查看页,4:工单,5:查询条件") private Integer configType; @ApiModelProperty("是否必填") private Integer mustField; @ApiModelProperty("是否是导入字段 0否 1是") private Integer importField; @ApiModelProperty("导入时排序") private Integer importSort; public CustomTemplateFieldRelation setTenantId(final String tenantId) { this.tenantId = tenantId; return this; } public CustomTemplateFieldRelation setTemplateId(final Long templateId) { this.templateId = templateId; return this; } public CustomTemplateFieldRelation setFieldId(final Long fieldId) { this.fieldId = fieldId; return this; } public CustomTemplateFieldRelation setSort(final Integer sort) { this.sort = sort; return this; } public CustomTemplateFieldRelation setConfigType(final Integer configType) { this.configType = configType; return this; } public CustomTemplateFieldRelation setMustField(final Integer mustField) { this.mustField = mustField; return this; } public CustomTemplateFieldRelation setImportField(final Integer importField) { this.importField = importField; return this; } public CustomTemplateFieldRelation setImportSort(final Integer importSort) { this.importSort = importSort; return this; } public String toString() { return "CustomTemplateFieldRelation(tenantId=" + getTenantId() + ", templateId=" + getTemplateId() + ", fieldId=" + getFieldId() + ", sort=" + getSort() + ", configType=" + getConfigType() + ", mustField=" + getMustField() + ", importField=" + getImportField() + ", importSort=" + getImportSort() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof CustomTemplateFieldRelation) { CustomTemplateFieldRelation other = (CustomTemplateFieldRelation) o; if (other.canEqual(this) && super.equals(o)) { Object this$templateId = getTemplateId(); Object other$templateId = other.getTemplateId(); if (this$templateId == null) { if (other$templateId != null) { return false; } } else if (!this$templateId.equals(other$templateId)) { return false; } Object this$fieldId = getFieldId(); Object other$fieldId = other.getFieldId(); if (this$fieldId == null) { if (other$fieldId != null) { return false; } } else if (!this$fieldId.equals(other$fieldId)) { 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$configType = getConfigType(); Object other$configType = other.getConfigType(); if (this$configType == null) { if (other$configType != null) { return false; } } else if (!this$configType.equals(other$configType)) { return false; } Object this$mustField = getMustField(); Object other$mustField = other.getMustField(); if (this$mustField == null) { if (other$mustField != null) { return false; } } else if (!this$mustField.equals(other$mustField)) { return false; } Object this$importField = getImportField(); Object other$importField = other.getImportField(); if (this$importField == null) { if (other$importField != null) { return false; } } else if (!this$importField.equals(other$importField)) { return false; } Object this$importSort = getImportSort(); Object other$importSort = other.getImportSort(); if (this$importSort == null) { if (other$importSort != null) { return false; } } else if (!this$importSort.equals(other$importSort)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); return this$tenantId == null ? other$tenantId == null : this$tenantId.equals(other$tenantId); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof CustomTemplateFieldRelation; } public int hashCode() { int result = super.hashCode(); Object $templateId = getTemplateId(); int result2 = (result * 59) + ($templateId == null ? 43 : $templateId.hashCode()); Object $fieldId = getFieldId(); int result3 = (result2 * 59) + ($fieldId == null ? 43 : $fieldId.hashCode()); Object $sort = getSort(); int result4 = (result3 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $configType = getConfigType(); int result5 = (result4 * 59) + ($configType == null ? 43 : $configType.hashCode()); Object $mustField = getMustField(); int result6 = (result5 * 59) + ($mustField == null ? 43 : $mustField.hashCode()); Object $importField = getImportField(); int result7 = (result6 * 59) + ($importField == null ? 43 : $importField.hashCode()); Object $importSort = getImportSort(); int result8 = (result7 * 59) + ($importSort == null ? 43 : $importSort.hashCode()); Object $tenantId = getTenantId(); return (result8 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); } public String getTenantId() { return this.tenantId; } public Long getTemplateId() { return this.templateId; } public Long getFieldId() { return this.fieldId; } public Integer getSort() { return this.sort; } public Integer getConfigType() { return this.configType; } public Integer getMustField() { return this.mustField; } public Integer getImportField() { return this.importField; } public Integer getImportSort() { return this.importSort; } }