2026-04-23 c247f5bf64c98595cc7e4efc9e1ae7ff1df79c11
src/main/java/com/ruoyi/safe/pojo/SafeAccident.java
@@ -10,8 +10,7 @@
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
@@ -27,7 +26,7 @@
@Getter
@Setter
@TableName("safe_accident")
@ApiModel(value = "SafeAccident对象", description = "安全生产--事故上报记录")
@Schema(name = "SafeAccident对象", description = "安全生产--事故上报记录")
public class SafeAccident implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -35,61 +34,61 @@
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("事故编号")
    @Schema(description = "事故编号")
    private String accidentCode;
    @ApiModelProperty("事故名称")
    @Schema(description = "事故名称")
    private String accidentName;
    @ApiModelProperty("事故类型")
    @Schema(description = "事故类型")
    private String accidentType;
    @ApiModelProperty("事故发生时间")
    @Schema(description = "事故发生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime happenTime;
    @ApiModelProperty("事故发生位置")
    @Schema(description = "事故发生位置")
    private String happenLocation;
    @ApiModelProperty("事故等级")
    @Schema(description = "事故等级")
    private String accidentGrade;
    @ApiModelProperty("事故直接原因")
    @Schema(description = "事故直接原因")
    private String accidentCause;
    @ApiModelProperty("事故根本原因")
    @Schema(description = "事故根本原因")
    private String rootCause;
    @ApiModelProperty("人员损失情况")
    @Schema(description = "人员损失情况")
    private String personLoss;
    @ApiModelProperty("直接财产损失(元)   ")
    @Schema(description = "直接财产损失(元)   ")
    private BigDecimal assetLoss;
    @ApiModelProperty("生产影响情况")
    @Schema(description = "生产影响情况")
    private String productionLoss;
    @ApiModelProperty("现场应急处置措施")
    @Schema(description = "现场应急处置措施")
    private String handleMeasures;
    @ApiModelProperty("事故责任人")
    @Schema(description = "事故责任人")
    private String responsiblePerson;
    @ApiModelProperty("备注")
    @Schema(description = "备注")
    private String remark;
    @ApiModelProperty("上报时间")
    @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;
    @ApiModelProperty("上报人id")
    @Schema(description = "上报人id")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    @ApiModelProperty("上报人")
    @Schema(description = "上报人")
    @TableField(exist = false)
    private String createUserName;