package cn.iocoder.yudao.module.pms.controller.admin.failure.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 故障上报 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotFailureReportRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17824")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "故障编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("故障编码")
    private String failureCode;

    @Schema(description = "故障名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("故障名称")
    private String failureName;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15038")
//    @ExcelProperty("设备id")
    private Long deviceId;
    @Schema(description = "设备编码")
    @ExcelProperty("设备编码")
    private String deviceCode;
    @Schema(description = "设备名称")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private String status;

    @Schema(description = "审核状态")
    private String auditStatus;

    @Schema(description = "是否停机")
//    @ExcelProperty("是否停机")
    private Boolean ifStop;
    @ExcelProperty("是否停机")
    private String stop;

    @Schema(description = "故障时间")
    @ExcelProperty("故障时间")
    private LocalDateTime failureTime;

    @Schema(description = "解决时间")
    @ExcelProperty("解决时间")
    private LocalDateTime dealTime;

    @Schema(description = "处理小时")
    private BigDecimal dealHour;

    @Schema(description = "故障影响")
    @ExcelProperty("故障影响")
    private String failureInfluence;

    @Schema(description = "故障系统")
    @ExcelProperty("故障系统")
    private String failureSystem;

    @Schema(description = "故障描述", example = "随便")
    @ExcelProperty("故障描述")
    private String description;

    @Schema(description = "图片")
    @ExcelProperty("图片")
    private String pic;

    @Schema(description = "是否解决")
//    @ExcelProperty("是否解决")
    private Boolean ifDeal;
    @ExcelProperty("是否解决")
    private String deal;

    @Schema(description = "是否需要协助")
//    @ExcelProperty("是否需要协助")
    private Boolean needHelp;
    @ExcelProperty("是否需要协助")
    private String ifNeedHelp;
    @Schema(description = "解决办法")
    @ExcelProperty("解决办法")
    private String solution;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "维修负责人")
    private Long assigneeUserId;

    @Schema(description = "维修类型内外")
    private String type;
    /**审批人id*/
    private Long approvalId;

    private String approvalName;
    @ExcelProperty("故障类型")
    private String failureType;

    private Long failureNum;
}
