package com.cf.imes.module.executor.dal.dataobject.goods;


import com.cf.imes.framework.es.core.dal.ESDocument;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "优化后的大板信息")
public class OptimizeBoardModelDO extends ESDocument {

    @Schema(description = "排单ID")
    private Long planId;


    @Schema(description = "生产单id")
    private Long orderId;


    @Schema(description = "大板原长")
    private BigDecimal orgLength;
    @Schema(description = "大板原宽")
    private BigDecimal orgWidth;


    @Schema(description = "大板开料长")
    private BigDecimal length;
    @Schema(description = "大板开料宽")
    private BigDecimal width;
    @Schema(description = "大板厚度")
    private BigDecimal thickness;

    @Schema(description = "修边值")
    private BigDecimal cutBorder;


    @Schema(description = "开料刀直径")
    private BigDecimal diameter;


    @Schema(description = "开料刀路间隙")
    private BigDecimal cutKnifeGap;


    @Schema(description = "预铣值")
    private BigDecimal preMillingSize;


    @Schema(description = "是否辅助开料")
    private Boolean isHelpCut;


    @Schema(description = "同刀辅助开料偏移")
    private BigDecimal helpCutGap;


    @Schema(description = "开料刀ID")
    private Integer cutKnifeId;



    @Schema(description = "辅助刀ID")
    private Integer helpKnifeId;



    @Schema(description = "是否已优化")
    private Boolean isOptimized;


    @Schema(description = "大板数")
    private Integer boardCount;


    @Schema(description = "余料板数")
    private Integer remainBoardCount;


    @Schema(description = "最小板号")
    private Integer minBoardId;


    @Schema(description = "最大板号")
    private Integer maxBoardId;


    @Schema(description = "总平均利用率")
    private BigDecimal avgUsageRateAll;


    @Schema(description = "前N块板(不包含最后一块板)的平均利用率")
    private BigDecimal avgUsageRateExcludeLastBoard;



    @Schema(description = "最后一块板的利用率")
    private BigDecimal usageRateLastBoard;



    @Schema(description = "使用大板情况--大板优化数据")
    private String usedBoardInfo;



    @Schema(description = "小板排版情况--小板优化数据")
    private String blockPlaceInfo;



    @Schema(description = "余料板排版情况--余料板优化数据")
    private String remainBoardInfo;






}
