package com.fjhx.entity.bom;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fjhx.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * bom明细
 * </p>
 *
 * @author ${author}
 * @since 2022-07-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BomDetails extends BaseEntity {


    /**
     * bomId
     */
    private Long bomId;

    /**
     * 工艺路线id
     */
    private Long workingRouteId;

    /**
     * 工序id
     */
    private Long workingProcedureId;

    /**
     * 工艺路线工序关联id
     */
    private Long workingRouteProcedureId;

    /**
     * 物料id
     */
    private Long materialId;

    /**
     * 数量
     */
    private BigDecimal quantity;

    /**
     * 保底数量
     */
    private BigDecimal leastQuantity;

    /**
     * 代替物料id
     */
    private Long replaceMaterialId;

    /**
     * 代替数量
     */
    private BigDecimal replaceQuantity;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 逻辑删除 0未删除 1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;

}
