package com.ruoyi.safe.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalDateTime; /** *
* 安全生产--隐患排查上报 *
* * @author 芯导软件(江苏)有限公司 * @since 2026-01-28 11:10:54 */ @Data @TableName("safe_hidden") @Schema(name = "SafeHidden对象", description = "安全生产--隐患排查上报") public class SafeHidden implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Integer id; @Schema(description = "隐患编号") private String hiddenCode; @Schema(description = "隐患类型") private String type; @Schema(description = "隐患风险等级") private String riskLevel; @Schema(description = "隐患具体位置") private String location; @Schema(description = "隐患描述") private String hiddenDesc; @Schema(description = "整改责任人 ID") @NotBlank(message = "整改责任人不能为空") private Integer rectifyUserId; @Schema(description = "整改人联系电话") private String rectifyUserMobile; @Schema(description = "整改完成期限(日期)") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") @NotBlank(message = "整改完成期限不能为空") private LocalDate rectifyTime; @Schema(description = "整改具体措施") private String rectifyMeasures; @Schema(description = "实际整改完成时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate rectifyActualTime; @Schema(description = "验收人 ID") private Integer verifyUserId; @Schema(description = "验收结果") private String verifyResult; @Schema(description = "验收意见") private String verifyRemark; @Schema(description = "验收时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate verifyTime; @Schema(description = "上报时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @Schema(description = "上报人id") @TableField(fill = FieldFill.INSERT) private Integer createUser; @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @TableField(fill = FieldFill.INSERT) private Integer tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }