5ff2c525
姜超
feature(*): 并列排名计算
|
1
2
3
4
5
6
7
8
9
10
11
12
13
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
43
|
package cn.fw.morax.domain.db.eval;
import cn.fw.common.data.entity.BaseAuditableTimeEntity;
import cn.fw.morax.domain.dto.eval.EvalGroupIndicatorPreconditionLaddersDTO;
import cn.fw.morax.domain.enums.EvalScopeEnum;
import cn.fw.morax.domain.enums.IndicatorTypeEnum;
import cn.fw.morax.domain.enums.RankIndicatorTypeEnum;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDate;
/**
* <p>
* 奖惩排名日志
* </p>
*
* @author jiangchao
* @since 2022-12-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(autoResultMap = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class EvalGroupRewardRankLog extends BaseAuditableTimeEntity<EvalGroupRewardRankLog, Long>
implements Comparable<EvalGroupRewardRankLog>{
private static final long serialVersionUID = 1L;
/**
* 员工id
*/
private Long poolId;
/**
* 考评范围; 1:门店考评 2:人员考评
*/
private EvalScopeEnum scopeType;
/**
|
9161579f
姜超
feature(*): 排名返回名称
|
44
45
46
47
48
|
* 名称
*/
private String name;
/**
|
5ff2c525
姜超
feature(*): 并列排名计算
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
* 考评奖惩 前置条件 配置id
*/
private Long referId;
/**
* 指标类型 1.奖惩提成 2.前置条件指标
*/
private RankIndicatorTypeEnum targetType;
/**
* 原始值
*/
private BigDecimal value;
/**
* 达成目标
*/
private BigDecimal reachValue;
/**
* 排名
*/
private Integer rank;
|
c4a10f17
姜超
feature(*): 保存排名名次修改
|
68
69
70
71
|
/**
* 命中
*/
private Boolean hit;
|
5ff2c525
姜超
feature(*): 并列排名计算
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/**
* 数据日期
*/
private LocalDate dataDate;
/**
* 集团
*/
private Long groupId;
private Boolean yn;
@Override
public int compareTo(EvalGroupRewardRankLog other) {
return other.reachValue.compareTo(this.reachValue);
}
}
|