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

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

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

//@Schema(description = "管理后台 - 维修工单新增/修改 Request VO")
@Data
public class IotMaintainSaveReqVO {

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

    //故障id
    private String failureId;

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

    //@Schema(description = "故障名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    private String failureName;

    //@Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11515")
//    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    //@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @NotEmpty(message = "状态不能为空")
    private String status;

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

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

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

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

    //@Schema(description = "故障描述", example = "你猜")
    private String description;

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

    //@Schema(description = "解决办法")
    private String solution;

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

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

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

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

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

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

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

    //@Schema(description = "维修描述")
//    @NotEmpty(message = "维修描述不能为空")
    private String maintainDescription;
    //@Schema(description = "维修负责人")
//    @NotEmpty(message = "维修负责人不能为空")
    private String maintainPerson;
    /**
     * 维修费用
     */
    private BigDecimal maintainFee;
    /**
     * 供应商
     */
    private String supplier;
    /**
     * 委外附件
     */
    private String outFile;

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

    private String deviceCode;

    private List<String> pics;
    private List<String> outFiles;

    /**申请人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;

    private String maintainItem;
    /**维修方式描述*/
    private String methodDescription;
    /**维修方式*/
    private String maintainMethod;
}
