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.math.BigDecimal;
import java.util.Date;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
public class GetPlateByPlanIdVO extends PageParam {
    @Schema(description = "排单id")
    @NotNull(message = "排单id不能空")
    private Long planId;
    @Schema(description = "矩形")
    private Boolean rectangle;
    @Schema(description = "异形")
    private Boolean specialShaped;
    @Schema(description = "造型")
    private Boolean sculpt;
    @Schema(description = "有挖穿造型")
    private Boolean holeThrough;
    @Schema(description = "有挖穿孔")
    private Boolean burrow;
    @Schema(description = "有二维纹路")
    private Boolean twoDimensionalToolPath;
    @Schema(description = "门板")
    private Boolean isDoor;
    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date beginDate;
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date endDate;
    @Schema(description = "长 小范围")
    private BigDecimal longMinRang;
    @Schema(description = "长 大范围")
    private BigDecimal longMaxRang;
    @Schema(description = "宽 小范围")
    private BigDecimal widthMinRang;
    @Schema(description = "宽 大范围")
    private BigDecimal widthMaxRang;
}
