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

import cn.iocoder.yudao.module.pms.dal.dataobject.maintain.IotMaintainBomDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 维修工单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotMaintainRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20489")
    @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 = "11515")
//    @ExcelProperty("设备id")
    private Long deviceId;

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

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

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

    @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 String solution;

    @Schema(description = "维修开始时间")
    @ExcelProperty("维修开始时间")
    private LocalDateTime maintainStartTime;

    @Schema(description = "维修结束时间")
    @ExcelProperty("维修结束时间")
    private LocalDateTime maintainEndTime;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

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

    @Schema(description = "设备名称", example = "王五")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "流程实例id", example = "6913")
//    @ExcelProperty("流程实例id")
    private String processInstanceId;

    @Schema(description = "审核状态", example = "2")
//    @ExcelProperty("审核状态")
    private Integer auditStatus;

    @Schema(description = "部门id", example = "27456")
    private Long deptId;

    @Schema(description = "维修描述")
    private String maintainDescription;
    @Schema(description = "维修负责人")
    private Long maintainPerson;
    @Schema(description = "工单物料")
    private List<IotMaintainBomDO> maintainBomDOS;
    private String type;
    /**
     * 维修费用
     */
    private BigDecimal maintainFee;
    /**
     * 供应商
     */
    private String supplier;
    /**
     * 委外附件
     */
    private String outFile;

    private String deviceCode;

    /**
     * 维修工单类型
     */
    private String maintainType;

    private String supplierName;

    @ExcelProperty("所在部门")
    private String deptName;

    private String createName;
    private LocalDateTime executeDate;
    private List<String> pics;
    private List<String> outFiles;

    private String creator;
    private String maintainPersonName;
    /**申请人id*/
    private String applyPersonId;
    /**申请部门id*/
    private String applyDeptId;
    /**规格型号*/
    private String model;
    /**启用日期*/
    private String enableDate;
    /**维修类别*/
    private String maintainClassify;

    /**运转公里/小时*/
    private String kmHour;
    /**维修地点*/
    private String address;
    /**项目经理*/
    private String projectManager;
    /**oa流程单号*/
    private String oaFlowNo;
    /**维修项目*/
    private String maintainItem;
    /**oa返回的请求id*/
    private String requestId;
    /**维修方式*/
    private String maintainMethod;
    /**维修方式描述*/
    private String methodDescription;
    /**所在公司*/
    private String company;
    /**油服设备编码*/
    private String yfDeviceCode;
}
