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 = "BasCodeRule", description = "编码规则") @TableName("blade_bas_coderule") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/BasCodeRule.class */ public class BasCodeRule extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("规则名称") private String name; @ApiModelProperty("业务对象") private String billFormId; @ApiModelProperty("系统预设,是否启用") private Boolean systemDefault; @ApiModelProperty("自动补号") private Boolean autoBillno; @ApiModelProperty("手动补号") private Boolean repairBillno; @ApiModelProperty("是否是固定的流水号位数") private Boolean constLength; @ApiModelProperty("编码规则描述") private String remark; @ApiModelProperty("绑定的规则分类字段的字典值") private String ruleFieldDictKey; @ApiModelProperty("默认一") private String preview; public void setName(final String name) { this.name = name; } public void setBillFormId(final String billFormId) { this.billFormId = billFormId; } public void setSystemDefault(final Boolean systemDefault) { this.systemDefault = systemDefault; } public void setAutoBillno(final Boolean autoBillno) { this.autoBillno = autoBillno; } public void setRepairBillno(final Boolean repairBillno) { this.repairBillno = repairBillno; } public void setConstLength(final Boolean constLength) { this.constLength = constLength; } public void setRemark(final String remark) { this.remark = remark; } public void setRuleFieldDictKey(final String ruleFieldDictKey) { this.ruleFieldDictKey = ruleFieldDictKey; } public void setPreview(final String preview) { this.preview = preview; } public String toString() { return "BasCodeRule(name=" + getName() + ", billFormId=" + getBillFormId() + ", systemDefault=" + getSystemDefault() + ", autoBillno=" + getAutoBillno() + ", repairBillno=" + getRepairBillno() + ", constLength=" + getConstLength() + ", remark=" + getRemark() + ", ruleFieldDictKey=" + getRuleFieldDictKey() + ", preview=" + getPreview() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof BasCodeRule) { BasCodeRule other = (BasCodeRule) o; if (other.canEqual(this) && super.equals(o)) { Object this$systemDefault = getSystemDefault(); Object other$systemDefault = other.getSystemDefault(); if (this$systemDefault == null) { if (other$systemDefault != null) { return false; } } else if (!this$systemDefault.equals(other$systemDefault)) { return false; } Object this$autoBillno = getAutoBillno(); Object other$autoBillno = other.getAutoBillno(); if (this$autoBillno == null) { if (other$autoBillno != null) { return false; } } else if (!this$autoBillno.equals(other$autoBillno)) { return false; } Object this$repairBillno = getRepairBillno(); Object other$repairBillno = other.getRepairBillno(); if (this$repairBillno == null) { if (other$repairBillno != null) { return false; } } else if (!this$repairBillno.equals(other$repairBillno)) { return false; } Object this$constLength = getConstLength(); Object other$constLength = other.getConstLength(); if (this$constLength == null) { if (other$constLength != null) { return false; } } else if (!this$constLength.equals(other$constLength)) { 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$billFormId = getBillFormId(); Object other$billFormId = other.getBillFormId(); if (this$billFormId == null) { if (other$billFormId != null) { return false; } } else if (!this$billFormId.equals(other$billFormId)) { return false; } Object this$remark = getRemark(); Object other$remark = other.getRemark(); if (this$remark == null) { if (other$remark != null) { return false; } } else if (!this$remark.equals(other$remark)) { return false; } Object this$ruleFieldDictKey = getRuleFieldDictKey(); Object other$ruleFieldDictKey = other.getRuleFieldDictKey(); if (this$ruleFieldDictKey == null) { if (other$ruleFieldDictKey != null) { return false; } } else if (!this$ruleFieldDictKey.equals(other$ruleFieldDictKey)) { return false; } Object this$preview = getPreview(); Object other$preview = other.getPreview(); return this$preview == null ? other$preview == null : this$preview.equals(other$preview); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof BasCodeRule; } public int hashCode() { int result = super.hashCode(); Object $systemDefault = getSystemDefault(); int result2 = (result * 59) + ($systemDefault == null ? 43 : $systemDefault.hashCode()); Object $autoBillno = getAutoBillno(); int result3 = (result2 * 59) + ($autoBillno == null ? 43 : $autoBillno.hashCode()); Object $repairBillno = getRepairBillno(); int result4 = (result3 * 59) + ($repairBillno == null ? 43 : $repairBillno.hashCode()); Object $constLength = getConstLength(); int result5 = (result4 * 59) + ($constLength == null ? 43 : $constLength.hashCode()); Object $name = getName(); int result6 = (result5 * 59) + ($name == null ? 43 : $name.hashCode()); Object $billFormId = getBillFormId(); int result7 = (result6 * 59) + ($billFormId == null ? 43 : $billFormId.hashCode()); Object $remark = getRemark(); int result8 = (result7 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $ruleFieldDictKey = getRuleFieldDictKey(); int result9 = (result8 * 59) + ($ruleFieldDictKey == null ? 43 : $ruleFieldDictKey.hashCode()); Object $preview = getPreview(); return (result9 * 59) + ($preview == null ? 43 : $preview.hashCode()); } /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/BasCodeRule$BasCodeRuleBuilder.class */ public static class BasCodeRuleBuilder { private String name; private String billFormId; private Boolean systemDefault; private Boolean autoBillno; private Boolean repairBillno; private Boolean constLength; private String remark; private String ruleFieldDictKey; private String preview; BasCodeRuleBuilder() { } public BasCodeRuleBuilder name(final String name) { this.name = name; return this; } public BasCodeRuleBuilder billFormId(final String billFormId) { this.billFormId = billFormId; return this; } public BasCodeRuleBuilder systemDefault(final Boolean systemDefault) { this.systemDefault = systemDefault; return this; } public BasCodeRuleBuilder autoBillno(final Boolean autoBillno) { this.autoBillno = autoBillno; return this; } public BasCodeRuleBuilder repairBillno(final Boolean repairBillno) { this.repairBillno = repairBillno; return this; } public BasCodeRuleBuilder constLength(final Boolean constLength) { this.constLength = constLength; return this; } public BasCodeRuleBuilder remark(final String remark) { this.remark = remark; return this; } public BasCodeRuleBuilder ruleFieldDictKey(final String ruleFieldDictKey) { this.ruleFieldDictKey = ruleFieldDictKey; return this; } public BasCodeRuleBuilder preview(final String preview) { this.preview = preview; return this; } public BasCodeRule build() { return new BasCodeRule(this.name, this.billFormId, this.systemDefault, this.autoBillno, this.repairBillno, this.constLength, this.remark, this.ruleFieldDictKey, this.preview); } public String toString() { return "BasCodeRule.BasCodeRuleBuilder(name=" + this.name + ", billFormId=" + this.billFormId + ", systemDefault=" + this.systemDefault + ", autoBillno=" + this.autoBillno + ", repairBillno=" + this.repairBillno + ", constLength=" + this.constLength + ", remark=" + this.remark + ", ruleFieldDictKey=" + this.ruleFieldDictKey + ", preview=" + this.preview + ")"; } } public static BasCodeRuleBuilder builder() { return new BasCodeRuleBuilder(); } public BasCodeRule() { } public BasCodeRule(final String name, final String billFormId, final Boolean systemDefault, final Boolean autoBillno, final Boolean repairBillno, final Boolean constLength, final String remark, final String ruleFieldDictKey, final String preview) { this.name = name; this.billFormId = billFormId; this.systemDefault = systemDefault; this.autoBillno = autoBillno; this.repairBillno = repairBillno; this.constLength = constLength; this.remark = remark; this.ruleFieldDictKey = ruleFieldDictKey; this.preview = preview; } public String getName() { return this.name; } public String getBillFormId() { return this.billFormId; } public Boolean getSystemDefault() { return this.systemDefault; } public Boolean getAutoBillno() { return this.autoBillno; } public Boolean getRepairBillno() { return this.repairBillno; } public Boolean getConstLength() { return this.constLength; } public String getRemark() { return this.remark; } public String getRuleFieldDictKey() { return this.ruleFieldDictKey; } public String getPreview() { return this.preview; } }