xiaoyi
4 天以前 abf1c0a35d85d38239ff5d2ed746a4e4b797c9d1
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
package cn.iocoder.yudao.module.hrm.controller.admin.certificate.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.time.LocalDate;
 
@Schema(description = "管理后台 - HRM 证书资质新增/修改 Request VO")
@Data
public class HrmCertificateSaveReqVO {
 
    @Schema(description = "编号(修改时必填)", example = "1")
    private Long id;
 
    @Schema(description = "员工编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "员工不能为空")
    private Long employeeId;
 
    @Schema(description = "证书类型(1=特种作业证书,2=从业资质,3=技能等级证书,4=安全培训合格证)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "证书类型不能为空")
    private Integer certType;
 
    @Schema(description = "证书名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "高压电工特种作业操作证")
    @NotEmpty(message = "证书名称不能为空")
    private String certName;
 
    @Schema(description = "证书编号", example = "T2019-0001")
    private String certNo;
 
    @Schema(description = "发证机构", example = "国家能源局")
    private String issueOrg;
 
    @Schema(description = "发证日期")
    private LocalDate issueDate;
 
    @Schema(description = "有效期至", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期至不能为空")
    private LocalDate expireDate;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}