xiaoyi
2026-10-29 2af6d5d996786d9b6b859b748af2ab9b71ad23e1
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
74
package cn.iocoder.yudao.module.mes.controller.admin.safety.vo.hazard;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDate;
import java.time.LocalDateTime;
 
/**
 * 安全生产 - 隐患上报/修改 Request VO
 *
 * @author 超级管理员
 */
@Schema(description = "管理后台 - 隐患上报/修改 Request VO")
@Data
public class SafetyHazardSaveReqVO {
 
    private Long id;
 
    @Schema(description = "隐患标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "配电室门未上锁")
    @NotBlank(message = "隐患标题不能为空")
    @Size(max = 200)
    private String title;
 
    @Schema(description = "隐患等级", example = "GENERAL")
    @Pattern(regexp = "GENERAL|MAJOR", message = "隐患等级不合法")
    private String level;
 
    @Schema(description = "来源", example = "INSPECTION")
    @Pattern(regexp = "INSPECTION|SELF_CHECK|REPORT|EXTERNAL", message = "隐患来源不合法")
    private String source;
 
    @Schema(description = "关联巡检记录编号")
    private Long inspectionId;
 
    @Schema(description = "关联巡检点位编号")
    private Long pointId;
 
    @Schema(description = "点位名称")
    @Size(max = 100)
    private String pointName;
 
    @Schema(description = "隐患位置")
    @Size(max = 200)
    private String location;
 
    @Schema(description = "隐患描述")
    @Size(max = 2000)
    private String description;
 
    @Schema(description = "现场照片 URL,逗号分隔(移动端拍照上传)")
    @Size(max = 2000)
    private String photoUrls;
 
    @Schema(description = "上报人", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotBlank(message = "上报人不能为空")
    @Size(max = 50)
    private String reporter;
 
    @Schema(description = "上报时间")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime reportTime;
 
    @Schema(description = "整改期限")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private LocalDate rectifyDeadline;
 
    @Schema(description = "备注")
    @Size(max = 500)
    private String remark;
 
}