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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 故障上报新增/修改 Request VO")
@Data
public class IotFailureReportSaveReqVO {

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

    @Schema(description = "故障编码", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "故障编码不能为空")
    private String failureCode;

    @Schema(description = "故障名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    //@NotEmpty(message = "故障名称不能为空")
    private String failureName;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15038")
    @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 LocalDateTime dealTime;

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

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

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

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

    @Schema(description = "是否解决")
    private Boolean ifDeal;

    @Schema(description = "是否需要协助")
    private Boolean needHelp;

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

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

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

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

    @Schema(description = "维修类型内外")
    private String type;

    @Schema(description = "设备编码")
    private String deviceCode;

    /**审批人id*/
    @Schema(description = "审批人id逗号分隔")
    private String approvalId;

    private String failureType;
}
