package cn.iocoder.yudao.module.mes.controller.admin.machine.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

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

@Schema(description = "管理后台 - 机台列表 Request VO")
@Data
public class MachineComponentListReqVO {

    @Schema(description = "装备名称", example = "芋艿")
    private String name;
    @Schema(description = "编码", example = "1")
    private String code;

    @Schema(description = "父id", example = "24628")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "组织机台ID", example = "13753")
    private Long orgId;

    @Schema(description = "装备SN号")
    private String serialCode;

    @Schema(description = "出厂日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] outgoingTime;

    @Schema(description = "出厂报告")
    private String outgoingReport;

    @Schema(description = "位置")
    private String position;

    @Schema(description = "规格")
    private String standard;

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

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

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

    @Schema(description = "组织类型", example = "1")
    private Integer componentType;

    @Schema(description = "机台类型", example = "1")
    private String machineType;

    @Schema(description = "组织类型", example = "1")
    private List<Integer> componentTypes;

    @Schema(description = "建议维保时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] maintainTime;

    @Schema(description = "建议维保类型(按使用时间，距离上次维保时间)", example = "1")
    private String maintainType;

    @Schema(description = "建议维保时间单位")
    private String maintainTimeUnit;

    @Schema(description = "实际维保时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] trueMaintainTime;

    @Schema(description = "实际维保时间单位")
    private String trueMaintainTimeUnit;

    @Schema(description = "实际维保类型", example = "1")
    private String trueMaintainTimeType;

    @Schema(description = "上次维保时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastMaitainTime;

    @Schema(description = "模具id")
    private Long moldId;
}