Blame view

fw-morax-domain/src/main/java/cn/fw/morax/domain/dto/eval/EvalGroupRewardLaddersDTO.java 1.78 KB
eb162cce   姜超   feature(*): 考评组实体类
1
2
3
  package cn.fw.morax.domain.dto.eval;
  
  import cn.fw.common.data.entity.BaseAuditableTimeEntity;
a3d13c97   姜超   feature(*): 考评组保存
4
5
6
  import cn.fw.morax.common.utils.PublicUtil;
  import cn.fw.morax.domain.dto.AbstractLaddersDto;
  import cn.fw.morax.domain.dto.kpi.KpiGroupIndicatorLaddersDTO;
eee77f4e   姜超   feature(*): 负数排名设置
7
  import cn.fw.morax.domain.enums.RankOrderTypeEnum;
eb162cce   姜超   feature(*): 考评组实体类
8
9
10
11
12
  import com.baomidou.mybatisplus.annotation.TableLogic;
  import com.baomidou.mybatisplus.annotation.TableName;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  
280563a2   姜超   feature(*): 考评组保存
13
  import javax.validation.constraints.NotNull;
eb162cce   姜超   feature(*): 考评组实体类
14
15
16
17
18
19
20
21
22
23
24
25
  import java.math.BigDecimal;
  
  /**
   * <p>
   * 考评奖惩阶梯
   * </p>
   *
   * @author jiangchao
   * @since 2022-12-09
   */
  @Data
  @EqualsAndHashCode(callSuper = false)
a3d13c97   姜超   feature(*): 考评组保存
26
  public class EvalGroupRewardLaddersDTO extends AbstractLaddersDto implements Comparable<EvalGroupRewardLaddersDTO>{
eb162cce   姜超   feature(*): 考评组实体类
27
28
29
  
      private static final long serialVersionUID = 1L;
  
eb162cce   姜超   feature(*): 考评组实体类
30
  
a3d13c97   姜超   feature(*): 考评组保存
31
32
33
34
35
36
37
38
39
  //    /**
  //     * 阶梯下限;大于等于
  //     */
  //    private BigDecimal lower;
  //
  //    /**
  //     * 阶梯上限;小于; 无上限的情况值为 2<<15
  //     */
  //    private BigDecimal upper;
eb162cce   姜超   feature(*): 考评组实体类
40
41
  
      /**
eee77f4e   姜超   feature(*): 负数排名设置
42
43
44
45
46
       * 排名顺序类型 1:正  2:负
       */
      private RankOrderTypeEnum rankOrderType;
  
      /**
eb162cce   姜超   feature(*): 考评组实体类
47
48
       * 金额
       */
280563a2   姜超   feature(*): 考评组保存
49
      @NotNull(message = "金额不能为空")
eb162cce   姜超   feature(*): 考评组实体类
50
51
52
53
54
55
56
57
      private BigDecimal money;
  
      /**
       * 封顶金额/
       */
      private BigDecimal capMoney;
  
      /**
a3d13c97   姜超   feature(*): 考评组保存
58
59
60
61
       * 正序排列
       *
       * @param other
       * @return
eb162cce   姜超   feature(*): 考评组实体类
62
       */
a3d13c97   姜超   feature(*): 考评组保存
63
64
65
66
67
68
69
70
      @Override
      public int compareTo(EvalGroupRewardLaddersDTO other) {
          if (PublicUtil.isEmpty(this.upper) || PublicUtil.isEmpty(other.getUpper())) {
              return this.lower.compareTo(other.getLower());
          } else {
              return this.upper.compareTo(other.getUpper());
          }
      }
eb162cce   姜超   feature(*): 考评组实体类
71
  
a3d13c97   姜超   feature(*): 考评组保存
72
73
74
75
      @Override
      public String getBusinessName() {
          return "奖励项阶梯";
      }
eb162cce   姜超   feature(*): 考评组实体类
76
77
  
  }