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 com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.time.LocalDateTime; /** *
* 安全生产--安全设施定时巡检任务 *
*/ @Data @TableName("safe_facility_inspection_task") @Schema(name = "SafeFacilityInspectionTask对象", description = "安全生产--安全设施定时巡检任务") public class SafeFacilityInspectionTask implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @Schema(description = "巡检任务名称") private String inspectionName; @Schema(description = "设施ID") private Integer facilityId; @Schema(description = "设施编号") private String facilityCode; @Schema(description = "设施名称") private String facilityName; @Schema(description = "巡检项目") private String inspectionProject; @Schema(description = "巡检人ID") private Integer inspectorId; @Schema(description = "频率类型 DAILY/WEEKLY/MONTHLY") private String frequencyType; @Schema(description = "频率详情") private String frequencyDetail; @Schema(description = "下次执行时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime nextExecutionTime; @Schema(description = "最后执行时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime lastExecutionTime; @Schema(description = "是否启用 0否 1是") private Integer isEnabled; @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; @Schema(description = "租户ID") @TableField(fill = FieldFill.INSERT) private Integer tenantId; @Schema(description = "部门ID") @TableField(fill = FieldFill.INSERT) private Long deptId; @TableField(exist = false) private String inspectorName; }