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

import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author Beal
 */
@Data
public class PlanOrderPageReqVO extends PageParam {

    @Schema(description = "排单id")
    @NotNull(message = "排单id不能空")
    private Long planId;

    /*@Schema(description = "交付日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] deliveryDate;

    @Schema(description = "生产单类型，1主单 2子单", example = "1")
    private Boolean type;

    @Schema(description = "生产单排序号")
    private Integer sort;

    @Schema(description = "CAD数据类型，1CAD 2WebCAD 3Excel", example = "1")
    private Integer dataType;

    @Schema(description = "订单状态，0未排单1已排单2生产中3加工完成4打包完成5入库完成6出库完成", example = "1")
    private Integer status;

    @Schema(description = "自定义单号")
    private String customOrderNo;

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

    @Schema(description = "客户地址")
    private String address;

    @Schema(description = "客户电话")
    private String phoneNumber;

    @Schema(description = "经销商")
    private String dealer;

    @Schema(description = "经销商电话")
    private String dealerPhoneNumber;

    @Schema(description = "业务员")
    private String salesman;

    @Schema(description = "拆单员")
    private String splitter;

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

}
