zf
2023-10-12 d4e67803e0748a4a7af58739e0ca3108482d86d7
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
56
package com.gkhy.exam.noncoalmine.model.addForm;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/9/13
 * @time: 15:37
 */
@Data
public class ViolationRegistrationAddForm {
    //姓名
    @ApiModelProperty(value = "姓名",required = true)
    @NotEmpty(message = "请填写姓名")
    private String name;
    //身份证
    @ApiModelProperty(value = "身份证",required = true)
    @NotEmpty(message = "请填写身份证")
    private String idCard;
    //电子证号
    @ApiModelProperty(value = "电子证号")
    private String electNum;
    //IC卡编号
    @ApiModelProperty(value = "IC卡编号")
    private String icNum;
    //作业时间
    @ApiModelProperty(value = "违章时间",required = true)
    @NotNull(message = "请填写违章时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date violationTime;
    //违章附件
    @ApiModelProperty(value = "违章附件")
    private String violationPath;
    //所属单位
    @ApiModelProperty(value = "所属单位",required = true)
    @NotEmpty(message = "请填写所属单位")
    private String dept;
    //操作类型id
    @ApiModelProperty(value = "操作类型id",required = true)
    @NotNull(message = "请选择操作类型")
    private Long operateTypeId;
    //是否为煤矿:0为非,1是
    @ApiModelProperty(value = "是否为煤矿:0为非,1是",required = true)
    @NotNull(message = "是否为煤矿不可为空")
    private Integer isCm;
    //描述
    @ApiModelProperty(value = "描述")
    private String remark;
}