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

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

import static com.cf.imes.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 PlanPageReqVO extends PageParam {

    @Schema(description = "排单号")
    private String planNo;

    @Schema(description = "排序优先级")
    private Integer sort;

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

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

    @Schema(description = "是否支付：0 否，1 是")
    private Boolean isPay;

    @Schema(description = "机台 ID", example = "16707")
    private Long machineId;

    @Schema(description = "计划时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planTime;

    @Schema(description = "生产单号")
    private String orderNos;

    @Schema(description = "生产单客户")
    private String customer;


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

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

    @Schema(description = "生产操作人")
    private String operator;

    @Schema(description = "生产时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] produceTime;

}