liu
10 天以前 dd1a51612fcd3c839d31dfa0df83b3d3071c8145
src/main/java/com/ruoyi/inspectiontask/pojo/InspectionTask.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -26,49 +27,83 @@
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "巡检任务名称")
    @ApiModelProperty(value = "设备名称")
    @Excel(name = "巡检任务名称")
    private String taskName;
    @ApiModelProperty(value = "设备id")
    private Integer taskId;
    @ApiModelProperty(value = "巡检人ID")
    private String inspectorId;
    @ApiModelProperty(value = "执行巡检的人员姓名")
    @Excel(name = "执行巡检人员")
    private String inspector;
    @ApiModelProperty(value = "任务附加说明或特殊情况记录")
    @Excel(name = "备注")
    private String remarks;
    @ApiModelProperty(value = "任务登记人ID")
    private Long registrantId;
    @ApiModelProperty(value = "任务登记人姓名")
    @Excel(name = "登记人")
    private String registrant;
    @ApiModelProperty(value = "频次")
    @Excel(name = "频次")
    private String frequencyType;
    @ApiModelProperty(value = "时间细节")
    @Excel(name = "开始日期与时间")
    private String frequencyDetail;
    @ApiModelProperty(value = "巡检地点详细描述")
    private String inspectionLocation;
    @ApiModelProperty(value = "巡检路径(JSON点位)")
    private String inspectionRoute;
    @ApiModelProperty(value = "任务状态 pending/running/finished")
    private String taskStatus;
    @ApiModelProperty(value = "自动生成的巡检报告")
    private String reportContent;
    @ApiModelProperty(value = "报告生成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reportTime;
    @ApiModelProperty(value = "信息来源 manual/video/drone/robot")
    private String deviceSource;
    @ApiModelProperty(value = "实际开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime actualStartTime;
    @ApiModelProperty(value = "实际结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime actualEndTime;
    @ApiModelProperty(value = "软删除标志,0=未删除,1=已删除")
    private Integer deleted;
    @ApiModelProperty(value = "创建该记录的用户")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private String createUser;
    private Integer createUser;
    @ApiModelProperty(value = "记录创建时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "登记日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "最后修改该记录的用户")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    private String updateUser;
    private Integer updateUser;
    @ApiModelProperty(value = "记录最后更新时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
@@ -76,6 +111,6 @@
    @ApiModelProperty(value = "租户")
    @TableField(fill = FieldFill.INSERT)
    private Integer tenantId;
    private Long tenantId;
}