package easydo.technology.model;

import easydo.technology.annotation.NotTableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 生产派工主表
 * 表名: product_order_dispatch
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProductOrderDispatch extends CommonModel {
    private String id;
    private String code;
    private String name;
    private String orderId;
    private String beginDate;
    private String endDate;
    private String status;
    private String routeId;
    private String bomId;
    private String stageId;
    private BigDecimal readyTimeHour;
    private BigDecimal processNum;
    private BigDecimal processTimeHour;
    private BigDecimal moveTimeHour;
    private BigDecimal moveNum;
    private Integer orderNum;
    private Boolean isReview;
    private Boolean isReport;
    private Boolean isRound;
    private Boolean isInspection;
    private String tenantId;
    private String createTime;
    private Long createId;

    @NotTableField
    private ProductOrder productOrder;
    @NotTableField
    private ProductOrderBom productOrderBom;
    @NotTableField
    private ProcessStage stage;
    @NotTableField
    private ProcessRoute route;
    @NotTableField
    private List<DispatchUserItem> userItems;  // 关联的派工人员列表
}
