New file |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | 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.baomidou.mybatisplus.annotation.TableName; |
| | | import enumeration.converter.RuleDeductCategoryConverter; |
| | | import enumeration.general.RuleDeductCategoryEnum; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 分数核算规则对象 t_default_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | */ |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER) |
| | | @TableName("t_calculate_rule") |
| | | public class CalculateRule { |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 合同id |
| | | */ |
| | | private Integer contractId; |
| | | |
| | | /** |
| | | * 规则名称 |
| | | */ |
| | | @ExcelProperty("考核内容") |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * 规则条件 |
| | | */ |
| | | @ExcelProperty("考核要求") |
| | | private String ruleCondition; |
| | | |
| | | /** |
| | | * 违规最小值 |
| | | */ |
| | | @ExcelProperty("违规最小值") |
| | | private Double min; |
| | | |
| | | /** |
| | | * 违规最大值 |
| | | */ |
| | | @ExcelProperty("违规最大值") |
| | | private Double max; |
| | | |
| | | /** |
| | | * 扣减方式 扣指定分数/分数乘以数量/除以数量后乘以分数 |
| | | */ |
| | | @ExcelProperty(value = "扣分方式", converter = RuleDeductCategoryConverter.class) |
| | | private RuleDeductCategoryEnum deductCategory; |
| | | |
| | | /** |
| | | * 扣除分数 |
| | | */ |
| | | @ExcelProperty("扣分数值") |
| | | private Double calcFraction; |
| | | |
| | | /** |
| | | * 当方式为除以时,除以当前字段数量 |
| | | */ |
| | | @ExcelProperty("除以数量") |
| | | private Integer calcUnit; |
| | | |
| | | private Date createTime; |
| | | private Date updateTime; |
| | | |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | } |