6 天以前 b5a87e4b0da54ad57f195e52cd06e7824e2e1f54
src/main/java/com/ruoyi/inspectiontask/pojo/InspectionTask.java
@@ -1,7 +1,12 @@
package com.ruoyi.inspectiontask.pojo;
import com.baomidou.mybatisplus.annotation.*;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -20,62 +25,78 @@
    private static final long serialVersionUID = 1L;
    /**
     * 巡检任务唯一标识
     */
    @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 Long areaId;
    @TableField(exist = false)
    @ApiModelProperty(value = "设备区域名称")
    private String areaName;
    @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 = "软删除标志,0=未删除,1=已删除")
    @ApiModelProperty(value = "软删除标记,0=未删除,1=已删除")
    private Integer deleted;
    @ApiModelProperty(value = "创建该记录的用户")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private String createUser;
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    @ApiModelProperty(value = "记录创建时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    @TableField(fill = 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;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateUser;
    @ApiModelProperty(value = "记录最后更新时间")
    @TableField(fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "租户")
    @TableField(fill = FieldFill.INSERT)
    private Integer tenantId;
    private Long tenantId;
    @TableField(exist = false)
    private String dateStr;
}