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.ycl.system.domain.TreeEntity; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 分数核算规则对象 t_default_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | */ |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER) |
| | | public class CalculateRule extends TreeEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ExcelProperty("序号") |
| | | private Long id; |
| | | |
| | | /** |
| | | * 单位id |
| | | */ |
| | | private Integer unitId; |
| | | |
| | | /** |
| | | * 规则名称 |
| | | */ |
| | | @ExcelProperty("考核内容") |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * 关联上级id |
| | | */ |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 规则描述 |
| | | */ |
| | | @ExcelProperty("评判标准") |
| | | private String ruleDesc; |
| | | |
| | | /** |
| | | * 规则条件 |
| | | */ |
| | | @ExcelProperty("考核要求") |
| | | private String ruleCondition; |
| | | |
| | | /** |
| | | * 扣减方式 1/2/3 扣指定分数/分数乘以数量/除以数量后乘以分数 |
| | | */ |
| | | @ExcelProperty("扣分方式") |
| | | private String deductCategory; |
| | | |
| | | /** |
| | | * 扣除分数 |
| | | */ |
| | | @ExcelProperty("扣分数值") |
| | | private Double calcFraction; |
| | | |
| | | /** |
| | | * 当方式为除以时,除以当前字段数量 |
| | | */ |
| | | @ExcelProperty("除以数量") |
| | | private Integer calcUnit; |
| | | |
| | | @TableLogic |
| | | private String deleted; |
| | | |
| | | } |