heheng
2025-09-12 3b109477ba6bd8dce0f61eb75248e603e584d8af
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
package com.gkhy.system.domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
 
/**
 * <p>
 * 日常安全检查主表
 * </p>
 *
 * @author hh
 * @since 2025-09-08 10:36:52
 */
@Getter
@Setter
@TableName("daily_safety_inspection")
@ApiModel(value = "DailySafetyInspection对象", description = "日常安全检查主表")
public class DailySafetyInspection implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value = "检查时间",required = true)
    @TableField("check_date")
    @NotNull(message = "检查时间不能为空")
    private LocalDate checkDate;
 
    @ApiModelProperty(value = "检查地点",required = true)
    @TableField("check_place")
    @NotBlank(message = "检查地点不能为空")
    private String checkPlace;
 
    @ApiModelProperty(value = "检查房间号",required = true)
    @TableField("check_room")
    @NotBlank(message = "检查房间号不能为空")
    private String checkRoom;
 
    @ApiModelProperty(value = "被检查部门/研究组",required = true)
    @TableField("research_group")
    @NotNull(message = "被检查部门/研究组不能为空")
    private Long researchGroup;
 
    @TableField(exist = false)
    @ApiModelProperty("被检查部门/研究组名称")
    private String researchGroupName;
 
 
    @ApiModelProperty(value = "检查类型 1综合检查、2部门检查、3实验室自查、4专项检查",required = true)
    @TableField("check_type")
    @NotNull(message = "检查类型不能为空")
    private Integer checkType;
 
    @ApiModelProperty(value = "检查内容",required = true)
    @TableField("check_content")
    @NotBlank(message = "检查内容不能为空")
    private String checkContent;
 
    @ApiModelProperty(value = "存在的主要隐患/问题",required = true)
    @TableField("main_hazard")
    @NotBlank(message = "存在的主要隐患/问题不能为空")
    private String mainHazard;
 
    @ApiModelProperty(value = "整改措施",required = true)
    @TableField("rectification_measures")
    @NotBlank(message = "整改措施不能为空")
    private String rectificationMeasures;
 
    @ApiModelProperty(value = "复查结果",required = true)
    @TableField("examination_results")
    @NotBlank(message = "复查结果不能为空")
    private String examinationResults;
 
    @ApiModelProperty(value = "复查人员id",required = true)
    @TableField("re_check_user_id")
    @NotNull(message = "复查人员id不能为空")
    private Long reCheckUserId;
 
    @ApiModelProperty("复查人员")
    @TableField("re_check_user")
    private String reCheckUser;
 
    @ApiModelProperty(value = "复查时间",required = true)
    @TableField("re_check_date")
    @NotNull(message = "复查时间不能为空")
    private LocalDate reCheckDate;
 
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
 
    @ApiModelProperty("删除标志(0代表存在 2代表删除)")
    @TableField("del_flag")
    private String delFlag;
 
    @ApiModelProperty("创建者")
    @TableField("create_by")
    private String createBy;
 
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
 
    @ApiModelProperty("更新者")
    @TableField("update_by")
    private String updateBy;
 
    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
 
    @TableField(exist = false)
    @ApiModelProperty("参与检查人员")
    @NotEmpty(message = "参与检查人员不能为空")
    private List<DailySafetyInspectionUser> dailySafetyInspectionUsers;
 
    @TableField(exist = false)
    @ApiModelProperty("参与检查人员id查询条件")
    private Long searchCheckUserId;
 
    @TableField(exist = false)
    @ApiModelProperty("查询条件检查开始时间")
    private Date checkBeginDate;
 
    @TableField(exist = false)
    @ApiModelProperty("查询条件检查结束时间")
    private Date checkEndDate;
 
    @ApiModelProperty(value = "是否存在隐患 0否1是")
    @TableField(exist = false)
    private Integer haveMainHazard;
}