| | |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 核算规则对象 t_calculate_rule |
| | | * 分数核算规则对象 t_default_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-03 |
| | | * @date 2024-04-01 |
| | | */ |
| | | public class CalculateRule extends TreeEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** */ |
| | | /** 主键 */ |
| | | private Long id; |
| | | |
| | | /** */ |
| | | @Excel(name = "") |
| | | private String name; |
| | | /** 规则名称 */ |
| | | @Excel(name = "规则名称") |
| | | private String ruleName; |
| | | |
| | | /** */ |
| | | @Excel(name = "") |
| | | private Long templateId; |
| | | /** 扣减方式 */ |
| | | @Excel(name = "扣减方式") |
| | | private Long deductCategory; |
| | | |
| | | /** 单位id */ |
| | | @Excel(name = "单位id") |
| | | private Long unitId; |
| | | /** 人工打分/系统打分 */ |
| | | private Long deductWay; |
| | | |
| | | /** 每少1%扣当月总服务费的多少 */ |
| | | @Excel(name = "每少1%扣当月总服务费的多少") |
| | | private BigDecimal value; |
| | | /** 规则描述 */ |
| | | @Excel(name = "规则描述") |
| | | private String ruleDesc; |
| | | |
| | | /** $column.columnComment */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String description; |
| | | /** 规则状态 */ |
| | | @Excel(name = "规则状态") |
| | | private String ruleStatus; |
| | | |
| | | /** 逻辑删除 */ |
| | | private String deleted; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | |
| | | { |
| | | return id; |
| | | } |
| | | public void setName(String name) |
| | | public void setRuleName(String ruleName) |
| | | { |
| | | this.name = name; |
| | | this.ruleName = ruleName; |
| | | } |
| | | |
| | | public String getName() |
| | | public String getRuleName() |
| | | { |
| | | return name; |
| | | return ruleName; |
| | | } |
| | | public void setTemplateId(Long templateId) |
| | | public void setDeductCategory(Long deductCategory) |
| | | { |
| | | this.templateId = templateId; |
| | | this.deductCategory = deductCategory; |
| | | } |
| | | |
| | | public Long getTemplateId() |
| | | public Long getDeductCategory() |
| | | { |
| | | return templateId; |
| | | return deductCategory; |
| | | } |
| | | public void setUnitId(Long unitId) |
| | | public void setDeductWay(Long deductWay) |
| | | { |
| | | this.unitId = unitId; |
| | | this.deductWay = deductWay; |
| | | } |
| | | |
| | | public Long getUnitId() |
| | | public Long getDeductWay() |
| | | { |
| | | return unitId; |
| | | return deductWay; |
| | | } |
| | | public void setValue(BigDecimal value) |
| | | public void setRuleDesc(String ruleDesc) |
| | | { |
| | | this.value = value; |
| | | this.ruleDesc = ruleDesc; |
| | | } |
| | | |
| | | public BigDecimal getValue() |
| | | public String getRuleDesc() |
| | | { |
| | | return value; |
| | | return ruleDesc; |
| | | } |
| | | public void setDescription(String description) |
| | | public void setRuleStatus(String ruleStatus) |
| | | { |
| | | this.description = description; |
| | | this.ruleStatus = ruleStatus; |
| | | } |
| | | |
| | | public String getDescription() |
| | | public String getRuleStatus() |
| | | { |
| | | return description; |
| | | return ruleStatus; |
| | | } |
| | | public void setDeleted(String deleted) |
| | | { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() |
| | | { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("name", getName()) |
| | | .append("templateId", getTemplateId()) |
| | | .append("ruleName", getRuleName()) |
| | | .append("parentId", getParentId()) |
| | | .append("unitId", getUnitId()) |
| | | .append("value", getValue()) |
| | | .append("description", getDescription()) |
| | | .append("deductCategory", getDeductCategory()) |
| | | .append("deductWay", getDeductWay()) |
| | | .append("ruleDesc", getRuleDesc()) |
| | | .append("ruleStatus", getRuleStatus()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |