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.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_line_inspection") @Schema(name = "SafeLineInspection对象", description = "安全生产--线路巡检任务") public class SafeLineInspection implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Integer id; @Schema(description = "巡检编号") private String inspectionCode; @Schema(description = "巡检名称") private String inspectionName; @Schema(description = "线路名称") private String lineName; @Schema(description = "巡检类型") private String inspectionType; @Schema(description = "计划巡检时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime planTime; @Schema(description = "指派人ID") private Integer assignUserId; @Schema(description = "巡检人ID(多个用逗号分隔)") private String inspectorId; @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; @TableField(exist = false) private String assignUserName; @TableField(exist = false) private String inspectorName; }