tuqin
7 天以前 c35bd84886fb0c4e4ee0ffeeb3819a8a8df532b5
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
52
53
54
55
package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.certificate;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDate;
 
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
 
@Schema(description = "管理后台 - 安全生产-资格证书新增/修改 Request VO")
@Data
public class MesSafetyCertificateSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "持证人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "持证人不能为空")
    private Long userId;
 
    @Schema(description = "所属部门编号", example = "120")
    private Long deptId;
 
    @Schema(description = "证书类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "证书类型不能为空")
    private Integer certType;
 
    @Schema(description = "证书编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "T123456789")
    @NotEmpty(message = "证书编号不能为空")
    private String certNo;
 
    @Schema(description = "发证机关", example = "新疆应急管理厅")
    private String issueOrg;
 
    @Schema(description = "发证日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate issueDate;
 
    @Schema(description = "有效期至(留空表示长期有效)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate expireDate;
 
    @Schema(description = "状态:1有效 0已作废", example = "1")
    private Integer status;
 
    @Schema(description = "证书扫描件地址")
    private String attachmentUrl;
 
    @Schema(description = "备注")
    private String remark;
 
}