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

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

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

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 IotMaintainPageReqVO extends PageParam {

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

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

    @Schema(description = "设备id", example = "11515")
    private Long deviceId;

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

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

    @Schema(description = "维修开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] maintainStartTime;

    @Schema(description = "维修结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] maintainEndTime;

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

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

    @Schema(description = "执行时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] executeDate;

    @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;
    private String type;
    /**
     * 维修费用
     */
    private BigDecimal maintainFee;
    /**
     * 供应商
     */
    private Long supplier;
    /**
     * 委外附件
     */
    private String outFile;
    private Set<Long> deptIds;
    private String timeType;
}
