package com.qianwen.smartman.modules.system.entity; 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 = "BasCodeRuleEntry", description = "编码规则明细") @TableName("blade_bas_coderule_entry") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/BasCodeRuleEntry.class */ public class BasCodeRuleEntry implements Serializable { private static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("主键") private Long id; @ApiModelProperty("编码规则id") private Long ruleId; @ApiModelProperty("序号") private Integer seq; @ApiModelProperty("元素类型") private Integer elementType; @ApiModelProperty("元素来源") private String elementSource; @ApiModelProperty("来源属性") private Integer sourceProperty; @ApiModelProperty("长度") private Integer length; @ApiModelProperty("格式") private String format; @ApiModelProperty("设置值") private String elementValue; @ApiModelProperty("起始值") private Integer seed; @ApiModelProperty("步长") private Integer incrementStep; @ApiModelProperty("分隔符") private String separatorChar; @ApiModelProperty("替代符") private String reChar; @ApiModelProperty("补位符") private String addChar; @ApiModelProperty("右侧截断") private Boolean cutStyle; @ApiModelProperty("右侧填充") private Boolean addStyle; @ApiModelProperty("编码依据") private Boolean codeOnlyBy; @ApiModelProperty("编码元素") private Boolean codeElement; public void setId(final Long id) { this.id = id; } public void setRuleId(final Long ruleId) { this.ruleId = ruleId; } public void setSeq(final Integer seq) { this.seq = seq; } public void setElementType(final Integer elementType) { this.elementType = elementType; } public void setElementSource(final String elementSource) { this.elementSource = elementSource; } public void setSourceProperty(final Integer sourceProperty) { this.sourceProperty = sourceProperty; } public void setLength(final Integer length) { this.length = length; } public void setFormat(final String format) { this.format = format; } public void setElementValue(final String elementValue) { this.elementValue = elementValue; } public void setSeed(final Integer seed) { this.seed = seed; } public void setIncrementStep(final Integer incrementStep) { this.incrementStep = incrementStep; } public void setSeparatorChar(final String separatorChar) { this.separatorChar = separatorChar; } public void setReChar(final String reChar) { this.reChar = reChar; } public void setAddChar(final String addChar) { this.addChar = addChar; } public void setCutStyle(final Boolean cutStyle) { this.cutStyle = cutStyle; } public void setAddStyle(final Boolean addStyle) { this.addStyle = addStyle; } public void setCodeOnlyBy(final Boolean codeOnlyBy) { this.codeOnlyBy = codeOnlyBy; } public void setCodeElement(final Boolean codeElement) { this.codeElement = codeElement; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof BasCodeRuleEntry) { BasCodeRuleEntry other = (BasCodeRuleEntry) 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$ruleId = getRuleId(); Object other$ruleId = other.getRuleId(); if (this$ruleId == null) { if (other$ruleId != null) { return false; } } else if (!this$ruleId.equals(other$ruleId)) { return false; } Object this$seq = getSeq(); Object other$seq = other.getSeq(); if (this$seq == null) { if (other$seq != null) { return false; } } else if (!this$seq.equals(other$seq)) { return false; } Object this$elementType = getElementType(); Object other$elementType = other.getElementType(); if (this$elementType == null) { if (other$elementType != null) { return false; } } else if (!this$elementType.equals(other$elementType)) { return false; } Object this$sourceProperty = getSourceProperty(); Object other$sourceProperty = other.getSourceProperty(); if (this$sourceProperty == null) { if (other$sourceProperty != null) { return false; } } else if (!this$sourceProperty.equals(other$sourceProperty)) { return false; } Object this$length = getLength(); Object other$length = other.getLength(); if (this$length == null) { if (other$length != null) { return false; } } else if (!this$length.equals(other$length)) { return false; } Object this$seed = getSeed(); Object other$seed = other.getSeed(); if (this$seed == null) { if (other$seed != null) { return false; } } else if (!this$seed.equals(other$seed)) { return false; } Object this$incrementStep = getIncrementStep(); Object other$incrementStep = other.getIncrementStep(); if (this$incrementStep == null) { if (other$incrementStep != null) { return false; } } else if (!this$incrementStep.equals(other$incrementStep)) { return false; } Object this$cutStyle = getCutStyle(); Object other$cutStyle = other.getCutStyle(); if (this$cutStyle == null) { if (other$cutStyle != null) { return false; } } else if (!this$cutStyle.equals(other$cutStyle)) { return false; } Object this$addStyle = getAddStyle(); Object other$addStyle = other.getAddStyle(); if (this$addStyle == null) { if (other$addStyle != null) { return false; } } else if (!this$addStyle.equals(other$addStyle)) { return false; } Object this$codeOnlyBy = getCodeOnlyBy(); Object other$codeOnlyBy = other.getCodeOnlyBy(); if (this$codeOnlyBy == null) { if (other$codeOnlyBy != null) { return false; } } else if (!this$codeOnlyBy.equals(other$codeOnlyBy)) { return false; } Object this$codeElement = getCodeElement(); Object other$codeElement = other.getCodeElement(); if (this$codeElement == null) { if (other$codeElement != null) { return false; } } else if (!this$codeElement.equals(other$codeElement)) { return false; } Object this$elementSource = getElementSource(); Object other$elementSource = other.getElementSource(); if (this$elementSource == null) { if (other$elementSource != null) { return false; } } else if (!this$elementSource.equals(other$elementSource)) { return false; } Object this$format = getFormat(); Object other$format = other.getFormat(); if (this$format == null) { if (other$format != null) { return false; } } else if (!this$format.equals(other$format)) { return false; } Object this$elementValue = getElementValue(); Object other$elementValue = other.getElementValue(); if (this$elementValue == null) { if (other$elementValue != null) { return false; } } else if (!this$elementValue.equals(other$elementValue)) { return false; } Object this$separatorChar = getSeparatorChar(); Object other$separatorChar = other.getSeparatorChar(); if (this$separatorChar == null) { if (other$separatorChar != null) { return false; } } else if (!this$separatorChar.equals(other$separatorChar)) { return false; } Object this$reChar = getReChar(); Object other$reChar = other.getReChar(); if (this$reChar == null) { if (other$reChar != null) { return false; } } else if (!this$reChar.equals(other$reChar)) { return false; } Object this$addChar = getAddChar(); Object other$addChar = other.getAddChar(); return this$addChar == null ? other$addChar == null : this$addChar.equals(other$addChar); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof BasCodeRuleEntry; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $ruleId = getRuleId(); int result2 = (result * 59) + ($ruleId == null ? 43 : $ruleId.hashCode()); Object $seq = getSeq(); int result3 = (result2 * 59) + ($seq == null ? 43 : $seq.hashCode()); Object $elementType = getElementType(); int result4 = (result3 * 59) + ($elementType == null ? 43 : $elementType.hashCode()); Object $sourceProperty = getSourceProperty(); int result5 = (result4 * 59) + ($sourceProperty == null ? 43 : $sourceProperty.hashCode()); Object $length = getLength(); int result6 = (result5 * 59) + ($length == null ? 43 : $length.hashCode()); Object $seed = getSeed(); int result7 = (result6 * 59) + ($seed == null ? 43 : $seed.hashCode()); Object $incrementStep = getIncrementStep(); int result8 = (result7 * 59) + ($incrementStep == null ? 43 : $incrementStep.hashCode()); Object $cutStyle = getCutStyle(); int result9 = (result8 * 59) + ($cutStyle == null ? 43 : $cutStyle.hashCode()); Object $addStyle = getAddStyle(); int result10 = (result9 * 59) + ($addStyle == null ? 43 : $addStyle.hashCode()); Object $codeOnlyBy = getCodeOnlyBy(); int result11 = (result10 * 59) + ($codeOnlyBy == null ? 43 : $codeOnlyBy.hashCode()); Object $codeElement = getCodeElement(); int result12 = (result11 * 59) + ($codeElement == null ? 43 : $codeElement.hashCode()); Object $elementSource = getElementSource(); int result13 = (result12 * 59) + ($elementSource == null ? 43 : $elementSource.hashCode()); Object $format = getFormat(); int result14 = (result13 * 59) + ($format == null ? 43 : $format.hashCode()); Object $elementValue = getElementValue(); int result15 = (result14 * 59) + ($elementValue == null ? 43 : $elementValue.hashCode()); Object $separatorChar = getSeparatorChar(); int result16 = (result15 * 59) + ($separatorChar == null ? 43 : $separatorChar.hashCode()); Object $reChar = getReChar(); int result17 = (result16 * 59) + ($reChar == null ? 43 : $reChar.hashCode()); Object $addChar = getAddChar(); return (result17 * 59) + ($addChar == null ? 43 : $addChar.hashCode()); } public String toString() { return "BasCodeRuleEntry(id=" + getId() + ", ruleId=" + getRuleId() + ", seq=" + getSeq() + ", elementType=" + getElementType() + ", elementSource=" + getElementSource() + ", sourceProperty=" + getSourceProperty() + ", length=" + getLength() + ", format=" + getFormat() + ", elementValue=" + getElementValue() + ", seed=" + getSeed() + ", incrementStep=" + getIncrementStep() + ", separatorChar=" + getSeparatorChar() + ", reChar=" + getReChar() + ", addChar=" + getAddChar() + ", cutStyle=" + getCutStyle() + ", addStyle=" + getAddStyle() + ", codeOnlyBy=" + getCodeOnlyBy() + ", codeElement=" + getCodeElement() + ")"; } public BasCodeRuleEntry() { } public BasCodeRuleEntry(final Long id, final Long ruleId, final Integer seq, final Integer elementType, final String elementSource, final Integer sourceProperty, final Integer length, final String format, final String elementValue, final Integer seed, final Integer incrementStep, final String separatorChar, final String reChar, final String addChar, final Boolean cutStyle, final Boolean addStyle, final Boolean codeOnlyBy, final Boolean codeElement) { this.id = id; this.ruleId = ruleId; this.seq = seq; this.elementType = elementType; this.elementSource = elementSource; this.sourceProperty = sourceProperty; this.length = length; this.format = format; this.elementValue = elementValue; this.seed = seed; this.incrementStep = incrementStep; this.separatorChar = separatorChar; this.reChar = reChar; this.addChar = addChar; this.cutStyle = cutStyle; this.addStyle = addStyle; this.codeOnlyBy = codeOnlyBy; this.codeElement = codeElement; } public Long getId() { return this.id; } public Long getRuleId() { return this.ruleId; } public Integer getSeq() { return this.seq; } public Integer getElementType() { return this.elementType; } public String getElementSource() { return this.elementSource; } public Integer getSourceProperty() { return this.sourceProperty; } public Integer getLength() { return this.length; } public String getFormat() { return this.format; } public String getElementValue() { return this.elementValue; } public Integer getSeed() { return this.seed; } public Integer getIncrementStep() { return this.incrementStep; } public String getSeparatorChar() { return this.separatorChar; } public String getReChar() { return this.reChar; } public String getAddChar() { return this.addChar; } public Boolean getCutStyle() { return this.cutStyle; } public Boolean getAddStyle() { return this.addStyle; } public Boolean getCodeOnlyBy() { return this.codeOnlyBy; } public Boolean getCodeElement() { return this.codeElement; } }