package com.zksy.base.domain;

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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 运维任务明细表
 * @TableName maintenance_task_detail
 */
@TableName(value = "maintenance_task_detail", schema = "app_user")
@Data
@ApiModel(value = "运维任务明细入参", description = "运维任务明细入参")
public class MaintenanceTaskDetail implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 运维任务明细ID
     */
    @ApiModelProperty(value = "运维任务明细ID")
    @TableId(type = IdType.AUTO)
    private Long detailId;

    /**
     * 关联运维任务ID
     */
    @ApiModelProperty(value = "关联运维任务ID")
    private Long taskId;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    /**
     * 设备编码
     */
    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    /**
     * 关联报警ID
     */
    @ApiModelProperty(value = "关联报警ID")
    private String alarmId;

    /**
     * 报警描述
     */
    @ApiModelProperty(value = "报警描述")
    private String alarmDesc;

    /**
     * 明细状态：1-待处理 2-处理中 3-已完成 4-已驳回
     */
    @ApiModelProperty(value = "明细状态：1-待处理 2-处理中 3-已完成 4-已驳回")
    private Integer detailStatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}