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 HrmPerformanceAppraiseResultSaveReqVO {
|
|
@Schema(description = "考核方案编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "考核方案不能为空")
|
private Long appraiseId;
|
|
@Schema(description = "员工编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
@NotNull(message = "员工不能为空")
|
private Long employeeId;
|
|
@Schema(description = "评语")
|
private String comment;
|
|
@Schema(description = "指标评分明细")
|
@Valid
|
private List<Item> items;
|
|
@Schema(description = "指标评分明细项")
|
@Data
|
public static class Item {
|
|
@Schema(description = "考核指标编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@NotNull(message = "考核指标不能为空")
|
private Long itemId;
|
|
@Schema(description = "自评得分", example = "90.00")
|
private BigDecimal selfScore;
|
|
@Schema(description = "上级评得分", example = "85.00")
|
private BigDecimal superiorScore;
|
}
|
|
}
|