hsy
4 小时以前 44840942aba889088a86d2b3d93856530bb2dc25
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
package cn.iocoder.yudao.module.hrm.controller.admin.salary.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - 请假类型扣款配置新增 Request VO")
@Data
public class HrmLeaveTypeConfigCreateReqVO {
 
    @Schema(description = "请假类型:1-事假, 2-病假, 3-年假, 4-婚假, 5-产假, 6-丧假", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "请假类型不能为空")
    private Integer leaveType;
 
    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "事假")
    @NotBlank(message = "类型名称不能为空")
    private String name;
 
    @Schema(description = "扣款比例(0-1之间,如0.5表示扣50%)", requiredMode = Schema.RequiredMode.REQUIRED, example = "0.5")
    @NotNull(message = "扣款比例不能为空")
    private BigDecimal deductionRatio;
 
    @Schema(description = "备注")
    private String remark;
 
    @Schema(description = "状态:0-启用, 1-禁用")
    private Integer status;
 
}