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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 故障上报分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotFailureReportPageReqVO extends PageParam {

    @Schema(description = "故障编码")
    private String failureCode;

    @Schema(description = "故障名称", example = "李四")
    private String failureName;

    @Schema(description = "设备id", example = "15038")
    private Long deviceId;
    @Schema(description = "设备名称")
    private String deviceName;

    @Schema(description = "状态", example = "1")
    private String status;

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

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

    @Schema(description = "故障时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    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 Boolean ifDeal;

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

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

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

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

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

    private String failureType;

    @Schema(description = "部门id集合 项目-任务 根据选择的部门筛选设备")
    private List<Long> deptIds;
}
