package com.cf.imes.module.executor.controller.admin.plan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 生产单开料排单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PlanRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12776")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "排单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排单号")
    private String planNo;

    @Schema(description = "排序优先级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序优先级")
    private Integer sort;

    @Schema(description = "排单类型：1 混单排单，2 生产单排单", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("排单类型：1 混单排单，2 生产单排单")
    private Integer type;

    @Schema(description = "排单状态：0 新单，1 板材已申请，2 开料中，3 已开料", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("排单状态：0 新单，1 板材已申请，2 开料中，3 已开料")
    private Integer status;

    @Schema(description = "是否支付：0 否，1 是", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否支付：0 否，1 是")
    private Boolean isPay;

    @Schema(description = "机台 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16707")
    @ExcelProperty("机台 ID")
    private Long machineId;

    @Schema(description = "机台 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16707")
    @ExcelProperty("机台 名称")
    private String machineName;

    @Schema(description = "计划时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("计划时间")
    private LocalDateTime planTime;

    @Schema(description = "生产单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产单号")
    private String orderNos;

    @Schema(description = "板材信息列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<PlateInfoVO> plateInfoList;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "生产操作人", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产操作人")
    private String operator;

    @Schema(description = "生产时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("生产时间")
    private LocalDateTime produceTime;

}