xiaoyi
4 天以前 c9d4ba37c1f681b12e24014013fa9a28734bad42
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
44
45
46
47
48
49
50
51
package cn.iocoder.yudao.module.hrm.controller.admin.performanceappraise.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * HRM 绩效考核指标 保存 Request VO(整表替换)
 */
@Schema(description = "HRM 绩效考核指标 - 保存 Request VO(整表替换)")
@Data
public class HrmPerformanceAppraiseItemSaveReqVO {
 
    @Schema(description = "考核方案编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "考核方案不能为空")
    private Long appraiseId;
 
    @Schema(description = "考核指标列表")
    @Valid
    private List<Item> items;
 
    @Schema(description = "考核指标")
    @Data
    public static class Item {
 
        @Schema(description = "指标编号(修改时必填)", example = "1")
        private Long id;
 
        @Schema(description = "指标名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "工作业绩")
        @NotNull(message = "指标名称不能为空")
        private String itemName;
 
        @Schema(description = "权重", requiredMode = Schema.RequiredMode.REQUIRED, example = "30.00")
        @NotNull(message = "权重不能为空")
        private BigDecimal weight;
 
        @Schema(description = "评分标准", example = "按季度目标达成率评分")
        private String scoringStandard;
 
        @Schema(description = "评分人类型: 1-自评 2-上级评", example = "1")
        private Integer scorerType;
 
        @Schema(description = "排序", example = "1")
        private Integer sort;
    }
 
}