| | |
| | | import com.alibaba.excel.enums.poi.VerticalAlignmentEnum; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.system.domain.TreeEntity; |
| | | import com.ycl.system.domain.TreeNode; |
| | | import enumeration.converter.RuleDeductCategoryConverter; |
| | | import enumeration.general.RuleDeductCategoryEnum; |
| | | import lombok.Data; |
| | |
| | | @ExcelIgnoreUnannotated |
| | | @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER) |
| | | @TableName("t_calculate_rule") |
| | | public class CalculateRule extends TreeNode { |
| | | private static final long serialVersionUID = 1L; |
| | | public class CalculateRule { |
| | | |
| | | /** |
| | | * 主键 |
| | | * id |
| | | */ |
| | | @ExcelProperty("序号") |
| | | private Long id; |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 合同id |
| | |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * 关联上级id |
| | | */ |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 规则描述 |
| | | */ |
| | | @ExcelProperty("评判标准") |
| | | private String ruleDesc; |
| | | |
| | | /** |
| | | * 规则条件 |
| | | */ |
| | | @ExcelProperty("考核要求") |
| | | private String ruleCondition; |
| | | |
| | | /** |
| | | * 违规最小值 |
| | | */ |
| | | @ExcelProperty("违规最小值") |
| | | private Double min; |
| | | |
| | | /** |
| | | * 违规最大值 |
| | | */ |
| | | @ExcelProperty("违规最大值") |
| | | private Double max; |
| | | |
| | | /** |
| | | * 扣减方式 扣指定分数/分数乘以数量/除以数量后乘以分数 |
| | | */ |
| | | @ExcelProperty(value = "扣分方式", converter = RuleDeductCategoryConverter.class) |