龚焕茏
2024-04-23 7ce7861b02a6a4c4fe53d6292d3d216a65551371
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java
@@ -1,9 +1,13 @@
package com.ycl.platform.domain.entity;
import annotation.Excel;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ycl.system.domain.TreeEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import lombok.Data;
/**
 * 分数核算规则对象 t_default_rule
@@ -11,112 +15,65 @@
 * @author ruoyi
 * @date 2024-04-01
 */
public class CalculateRule extends TreeEntity
{
@Data
@ExcelIgnoreUnannotated
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class CalculateRule extends TreeEntity {
    private static final long serialVersionUID = 1L;
    /** 主键 */
    /**
     * 主键
     */
    @ExcelProperty("序号")
    private Long id;
    /** 规则名称 */
    @Excel(name = "规则名称")
    /**
     * 单位id
     */
    private Integer unitId;
    /**
     * 规则名称
     */
    @ExcelProperty("考核内容")
    private String ruleName;
    /** 扣减方式 */
    @Excel(name = "扣减方式")
    private Long deductCategory;
    /**
     * 关联上级id
     */
    private Long parentId;
    /** 人工打分/系统打分 */
    private Long deductWay;
    /** 规则描述 */
    @Excel(name = "规则描述")
    /**
     * 规则描述
     */
    @ExcelProperty("评判标准")
    private String ruleDesc;
    /** 规则状态 */
    @Excel(name = "规则状态")
    private String ruleStatus;
    /**
     * 规则条件
     */
    @ExcelProperty("考核要求")
    private String ruleCondition;
    /** 逻辑删除 */
    /**
     * 扣减方式 1/2/3 扣指定分数/分数乘以数量/除以数量后乘以分数
     */
    @ExcelProperty("扣分方式")
    private String deductCategory;
    /**
     * 扣除分数
     */
    @ExcelProperty("扣分数值")
    private Double calcFraction;
    /**
     * 当方式为除以时,除以当前字段数量
     */
    @ExcelProperty("除以数量")
    private Integer calcUnit;
    @TableLogic
    private String deleted;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setRuleName(String ruleName)
    {
        this.ruleName = ruleName;
    }
    public String getRuleName()
    {
        return ruleName;
    }
    public void setDeductCategory(Long deductCategory)
    {
        this.deductCategory = deductCategory;
    }
    public Long getDeductCategory()
    {
        return deductCategory;
    }
    public void setDeductWay(Long deductWay)
    {
        this.deductWay = deductWay;
    }
    public Long getDeductWay()
    {
        return deductWay;
    }
    public void setRuleDesc(String ruleDesc)
    {
        this.ruleDesc = ruleDesc;
    }
    public String getRuleDesc()
    {
        return ruleDesc;
    }
    public void setRuleStatus(String ruleStatus)
    {
        this.ruleStatus = ruleStatus;
    }
    public String getRuleStatus()
    {
        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("ruleName", getRuleName())
            .append("parentId", getParentId())
            .append("deductCategory", getDeductCategory())
            .append("deductWay", getDeductWay())
            .append("ruleDesc", getRuleDesc())
            .append("ruleStatus", getRuleStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}