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; import java.util.List; /** *

* 安全生产--线路定时巡检任务 *

*/ @Data @TableName("safe_line_inspection_task") @Schema(name = "SafeLineInspectionTask对象", description = "安全生产--线路定时巡检任务") public class SafeLineInspectionTask implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @Schema(description = "巡检任务名称") private String inspectionName; @Schema(description = "线路名称") private String lineName; @Schema(description = "巡检项目") private String inspectionProject; @Schema(description = "巡检人ID(多个用逗号分隔)") private String 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 Long tenantId; @Schema(description = "部门ID") @TableField(fill = FieldFill.INSERT) private Long deptId; @TableField(exist = false) private String inspectorName; @TableField(exist = false) private List inspector; }