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.time.LocalDate; 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; /** *

* 安全生产--安全设施台账 *

* * @author 芯导软件(江苏)有限公司 * @since 2026-06-29 */ @Getter @Setter @TableName("safe_facility_ledger") @Schema(name = "SafeFacilityLedger对象", description = "安全生产--安全设施台账") public class SafeFacilityLedger implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Integer id; @Schema(description = "设施编号") private String facilityCode; @Schema(description = "设施名称") private String facilityName; @Schema(description = "设施类型") private String facilityType; @Schema(description = "规格型号") private String facilitySpec; @Schema(description = "安装位置") private String installLocation; @Schema(description = "安装时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate installTime; @Schema(description = "生产日期") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate productionDate; @Schema(description = "有效期(天)") private Integer validPeriod; @Schema(description = "下次检查时间") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate nextCheckTime; @Schema(description = "状态(正常/异常/报废)") private String status; @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(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; @Schema(description = "更新人ID") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @TableField(fill = FieldFill.INSERT) private Integer tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }