package com.ruoyi.device.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 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.LocalDateTime; /** * 安全设施台账实体类 * 用于管理安全设施的基本信息,包括消防器材、安全设备等 */ @Data @Schema @TableName("safety_facility") public class SafetyFacility { @TableId(type = IdType.AUTO) @Schema(description = "主键ID") private Long id; @Schema(description = "设施名称") @Excel(name = "设施名称") private String facilityName; @Schema(description = "设施类型:消防器材/安全设备等") @Excel(name = "设施类型") private String facilityType; @Schema(description = "所在位置") @Excel(name = "所在位置") private String location; @Schema(description = "关联设备ID") private Long deviceId; @Schema(description = "设施状态:正常/异常/停用") @Excel(name = "设施状态") private String status; @Schema(description = "上次巡检时间") @Excel(name = "上次巡检时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime lastInspectionTime; @Schema(description = "下次巡检时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime nextInspectionTime; @Schema(description = "责任部门") @Excel(name = "责任部门") private String responsibilityDept; @Schema(description = "责任人") @Excel(name = "责任人") private String responsibilityPerson; @Schema(description = "备注") @Excel(name = "备注") private String remarks; @Schema(description = "软删除标志:0=未删除,1=已删除") private Integer deleted; @Schema(description = "创建人") @TableField(fill = FieldFill.INSERT) private Integer createUser; @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 = "更新人") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @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) private Long tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }