xiangpei
2024-04-23 ab4e150d41e0200b64a75c59b668a9385b7782fd
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java
@@ -1,108 +1,122 @@
package com.ycl.platform.domain.entity;
import annotation.Excel;
import com.ycl.system.entity.BaseEntity;
import com.ycl.system.domain.TreeEntity;
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-01
 */
public class CalculateRule extends BaseEntity
public class CalculateRule extends TreeEntity
{
    private static final long serialVersionUID = 1L;
    /** $column.columnComment */
    /** 主键 */
    private Long id;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;
    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long templateId;
    /** 扣减方式 */
    @Excel(name = "扣减方式")
    private Long deductCategory;
    /** $column.columnComment */
    private Long parentId;
    /** 人工打分/系统打分 */
    private Long deductWay;
    /** 单位id */
    @Excel(name = "单位id")
    private Long unitId;
    /** 规则描述 */
    @Excel(name = "规则描述")
    private String ruleDesc;
    /** 每少1%扣当月总服务费的多少 */
    @Excel(name = "每少1%扣当月总服务费的多少")
    private BigDecimal value;
    /** 规则状态 */
    @Excel(name = "规则状态")
    private String ruleStatus;
    public void setId(Long id)
    /** 逻辑删除 */
    private String deleted;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    public Long getId()
    {
        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 setParentId(Long parentId)
    public void setDeductWay(Long deductWay)
    {
        this.parentId = parentId;
        this.deductWay = deductWay;
    }
    public Long getParentId()
    public Long getDeductWay()
    {
        return parentId;
        return deductWay;
    }
    public void setUnitId(Long unitId)
    public void setRuleDesc(String ruleDesc)
    {
        this.unitId = unitId;
        this.ruleDesc = ruleDesc;
    }
    public Long getUnitId()
    public String getRuleDesc()
    {
        return unitId;
        return ruleDesc;
    }
    public void setValue(BigDecimal value)
    public void setRuleStatus(String ruleStatus)
    {
        this.value = value;
        this.ruleStatus = ruleStatus;
    }
    public BigDecimal getValue()
    public String getRuleStatus()
    {
        return value;
        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("deductCategory", getDeductCategory())
            .append("deductWay", getDeductWay())
            .append("ruleDesc", getRuleDesc())
            .append("ruleStatus", getRuleStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}