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;
|
}
|
|
}
|