package com.ruoyi.safe.pojo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
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.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Getter;
|
import lombok.Setter;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
/**
|
* <p>
|
* 安全生产--事故上报记录
|
* </p>
|
*
|
* @author 芯导软件(江苏)有限公司
|
* @since 2026-01-28 02:40:31
|
*/
|
@Getter
|
@Setter
|
@TableName("safe_accident")
|
@Schema(name = "SafeAccident对象", description = "安全生产--事故上报记录")
|
public class SafeAccident implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
@Schema(description = "事故编号")
|
private String accidentCode;
|
|
@Schema(description = "事故名称")
|
private String accidentName;
|
|
@Schema(description = "事故类型")
|
private String accidentType;
|
|
@Schema(description = "事故发生时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime happenTime;
|
|
@Schema(description = "事故发生位置")
|
private String happenLocation;
|
|
@Schema(description = "事故等级")
|
private String accidentGrade;
|
|
@Schema(description = "事故直接原因")
|
private String accidentCause;
|
|
@Schema(description = "事故根本原因")
|
private String rootCause;
|
|
@Schema(description = "人员损失情况")
|
private String personLoss;
|
|
@Schema(description = "直接财产损失(元) ")
|
private BigDecimal assetLoss;
|
|
@Schema(description = "生产影响情况")
|
private String productionLoss;
|
|
@Schema(description = "现场应急处置措施")
|
private String handleMeasures;
|
|
@Schema(description = "事故责任人")
|
private String responsiblePerson;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@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;
|
|
@Schema(description = "上报人")
|
@TableField(exist = false)
|
private String createUserName;
|
|
@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;
|
}
|