package com.ruoyi.safe.specialequipment.pojo;
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.time.*;
|
@Data
|
@Schema(description = "特种设备电子台账")
|
@TableName("special_equipment_ledger")
|
public class SpecialEquipmentLedger {
|
private static final long serialVersionUID = 1L;
|
@TableId(type = IdType.AUTO) private Long id;
|
@Excel(name = "设备编号") private String equipmentNo;
|
@Excel(name = "设备名称") private String equipmentName;
|
@Excel(name = "设备类别") private String equipmentType;
|
@Excel(name = "规格型号") private String modelSpec;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "制造日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate manufactureDate;
|
@Excel(name = "安装位置") private String installLocation;
|
@Excel(name = "使用单位") private String useUnit;
|
@Excel(name = "登记证号") private String certificateNo;
|
@Excel(name = "检验周期(天)") private Integer inspectionCycleDays;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "下次检验日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate nextInspectionDate;
|
@Excel(name = "维保周期(天)") private Integer maintenanceCycleDays;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "下次维保日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate nextMaintenanceDate;
|
@Excel(name = "预警提前天数") private Integer alarmDays;
|
private Long managerId;
|
@Excel(name = "负责人") private String managerName;
|
@Excel(name = "安全员") private String safetyOfficer;
|
@Excel(name = "风险等级") private String riskLevel;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "最新检验日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate latestInspectionDate;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "最新维保日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate latestMaintenanceDate;
|
@Excel(name = "隐患状态", readConverterExp = "0=无隐患,1=待整改,2=整改中,3=已闭环") private Integer hazardStatus;
|
@Excel(name = "隐患描述") private String hazardDescription;
|
@JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "整改截止日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate rectificationDeadline;
|
@Excel(name = "备注") private String remarks;
|
@TableField(fill = FieldFill.INSERT) private Long createUser;
|
@TableField(fill = FieldFill.INSERT) private LocalDateTime createTime;
|
@TableField(fill = FieldFill.UPDATE) private Long updateUser;
|
@TableField(fill = FieldFill.UPDATE) private LocalDateTime updateTime;
|
@TableField(fill = FieldFill.INSERT) private Long tenantId;
|
@TableField(fill = FieldFill.INSERT) private Long deptId;
|
}
|