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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.hazard;
 
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 MesSafetyHazardSaveReqVO {
 
    @Schema(description = "编号", example = "1024")
    private Long id;
 
    @Schema(description = "隐患编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "YH-001")
    @NotEmpty(message = "隐患编码不能为空")
    private String code;
 
    @Schema(description = "隐患名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "配电箱缺防护罩")
    @NotEmpty(message = "隐患名称不能为空")
    private String name;
 
    @Schema(description = "隐患来源", example = "1")
    private Integer source;
 
    @Schema(description = "隐患等级", example = "1")
    private Integer hazardLevel;
 
    @Schema(description = "隐患类别", example = "1")
    private Integer category;
 
    @Schema(description = "关联风险单元编号", example = "1")
    private Long unitId;
 
    @Schema(description = "关联风险清单编号", example = "1")
    private Long riskId;
 
    @Schema(description = "所属车间编号", example = "7")
    private Long workshopId;
 
    @Schema(description = "具体位置", example = "造纸车间配电房")
    private String location;
 
    @Schema(description = "隐患描述")
    private String description;
 
    @Schema(description = "发现日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate foundDate;
 
    @Schema(description = "发现人编号", example = "1")
    private Long founderUserId;
 
    @Schema(description = "整改责任人编号", example = "1")
    @NotNull(message = "整改责任人不能为空")
    private Long chargeUserId;
 
    @Schema(description = "整改期限")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate deadline;
 
    @Schema(description = "整改要求")
    private String rectifyRequirement;
 
    @Schema(description = "备注")
    private String remark;
 
}