package com.fjhx.mes.entity.bom.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BasePo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * bom明细
 * </p>
 *
 * @author
 * @since 2023-03-29
 */
@Getter
@Setter
@TableName("bom_detail")
public class BomDetail extends BasePo {

    /**
     * bom id
     */
    private Long bomInfoId;

    /**
     * 产品id item模块product_info表id
     */
    @NotNull(message = "物料id不能为空")
    private Long productId;

    /**
     * 数量
     */
    @NotNull(message = "物料数量不能为空")
    private BigDecimal quantity;

    /**
     * 成本
     */
    @NotNull(message = "物料成本不能为空")
    private BigDecimal cost;

}
