Blame view

fw-morax-domain/src/main/java/cn/fw/morax/domain/db/eval/EvalGroupIndicatorParam.java 3.04 KB
eb162cce   姜超   feature(*): 考评组实体类
1
2
3
  package cn.fw.morax.domain.db.eval;
  
  import cn.fw.common.data.entity.BaseAuditableTimeEntity;
d4bc6af3   姜超   feature(*): 修改计算考评
4
5
6
  import cn.fw.morax.common.constant.Constant;
  import cn.fw.morax.common.utils.PublicUtil;
  import cn.fw.morax.domain.enums.*;
eb162cce   姜超   feature(*): 考评组实体类
7
8
9
10
  import com.baomidou.mybatisplus.annotation.TableLogic;
  import com.baomidou.mybatisplus.annotation.TableName;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
eb162cce   姜超   feature(*): 考评组实体类
11
  
eb162cce   姜超   feature(*): 考评组实体类
12
  import java.math.BigDecimal;
d4bc6af3   姜超   feature(*): 修改计算考评
13
  import java.math.RoundingMode;
eb162cce   姜超   feature(*): 考评组实体类
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  
  /**
   * <p>
   * 考评组指标参数
   * </p>
   *
   * @author jiangchao
   * @since 2022-12-09
   */
  @Data
  @EqualsAndHashCode(callSuper = false)
  @TableName(autoResultMap = true)
  public class EvalGroupIndicatorParam extends BaseAuditableTimeEntity<EvalGroupIndicatorParam, Long> {
  
      private static final long serialVersionUID = 1L;
  
      /**
       * 考评组配置id
       */
      private Long evalGroupId;
  
      /**
       * 考评组指标id
       */
      private Long evalGroupIndicatorId;
  
      /**
       * 条件类型(1.台阶条件,2,提成条件)
       */
028bb253   姜超   feature(*): 考评组相关文件
43
      private ParamTypeEnum paramType;
eb162cce   姜超   feature(*): 考评组实体类
44
45
46
47
  
      /**
       * 指标类型(1.指标,2,考评指标)
       */
028bb253   姜超   feature(*): 考评组相关文件
48
      private IndicatorCodeTypeEnum codeType;
eb162cce   姜超   feature(*): 考评组实体类
49
50
  
      /**
998f0d0b   姜超   feature(*): 修改计算考评
51
52
53
54
55
       * 数据类型;1:台数 2:百分比 3:金额
       */
      private DataTypeEnum dataType;
  
      /**
eb162cce   姜超   feature(*): 考评组实体类
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
       * 指标编码
       */
      private String code;
  
      /**
       * 指标库名称
       */
      private String name;
  
      /**
       * 占比
       */
      private BigDecimal proportion;
  
      /**
       * 是否封顶
       */
      private Boolean cap;
  
      /**
       * 目标计算类型;1: 目标值计算 2:最低要求计算
       */
80395901   张志伟   :fire:
78
      private TargetCalcTypeEnum targetCalcType;
eb162cce   姜超   feature(*): 考评组实体类
79
80
81
82
  
      /**
       * 绩效目标值类型; 1: 2:百分比 3:金额 4:台数
       */
3042c640   张志伟   :fire:
83
      private TargetTypeEnum targetType;
eb162cce   姜超   feature(*): 考评组实体类
84
85
86
87
88
89
90
  
      /**
       * 目标值
       */
      private BigDecimal targetValue;
  
      /**
7e7c92a1   姜超   feature(*): 考评排名组...
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
       * 目标计算类型;1: 目标值计算 2:最低要求计算 3:阶段目标 4:时间进度
       */
      private TargetCalcTypeEnum extraTargetCalcType;
  
      /**
       * 绩效目标值类型; 1: 2:百分比 3:金额 4:台数
       */
      private TargetTypeEnum extraTargetType;
  
      /**
       * 目标值
       */
      private BigDecimal extraTargetValue;
  
      /**
eb162cce   姜超   feature(*): 考评组实体类
106
107
108
109
110
       * 逻辑删除
       */
      @TableLogic
      private Boolean yn;
  
d4bc6af3   姜超   feature(*): 修改计算考评
111
112
113
114
115
      /**
       * 转换为小数
       */
      public void dividePercent() {
          this.setProportion(this.getProportion().divide(Constant.ONE_HUNDRED, 4, RoundingMode.HALF_UP));
c043db4c   姜超   feature(*): 查看考评详情
116
          if (PublicUtil.isNotEmpty(this.getTargetValue()) &&
2df28e36   姜超   feature(*): 考评排名组...
117
118
                  PublicUtil.isNotEmpty(this.getTargetType()) &&
                  TargetTypeEnum.RATIO.equals(this.getTargetType())) {
d4bc6af3   姜超   feature(*): 修改计算考评
119
120
              this.setTargetValue(this.getTargetValue().divide(Constant.ONE_HUNDRED, 4, RoundingMode.HALF_UP));
          }
2df28e36   姜超   feature(*): 考评排名组...
121
122
123
          if (PublicUtil.isNotEmpty(this.getExtraTargetValue()) &&
                  PublicUtil.isNotEmpty(this.getExtraTargetType()) &&
                  TargetTypeEnum.RATIO.equals(this.getExtraTargetType())) {
29de1560   姜超   feature(*): 考评排名组...
124
125
              this.setExtraTargetValue(this.getExtraTargetValue().divide(Constant.ONE_HUNDRED, 4, RoundingMode.HALF_UP));
          }
d4bc6af3   姜超   feature(*): 修改计算考评
126
127
      }
  
eb162cce   姜超   feature(*): 考评组实体类
128
129
  
  }