package com.fjhx.entity.logistics;

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>
 * 物流明细
 * </p>
 *
 * @author ${author}
 * @since 2022-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LogisticsDetails extends BaseEntity {


    /**
     * 物流信息id
     */
    private Long logisticsInfoId;

    /**
     * 物流信息编码
     */
    private String logisticsInfoCode;

    /**
     * 采购单id
     */
    private Long purchaseId;

    /**
     * 申购单id
     */
    private Long applyPurchaseId;

    /**
     * 发货数量
     */
    private BigDecimal shipmentQuantity;

    /**
     * 入库数量
     */
    private BigDecimal receiptQuantity;

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

    /**
     * 采购数量
     */
    @TableField(exist = false)
    private BigDecimal purchaseQuantity;

    /**
     * 物品ID
     */
    @TableField(exist = false)
    private Long goodsId;

    /**
     * 物品编码
     */
    @TableField(exist = false)
    private String goodsCode;

    /**
     * 物品名称
     */
    @TableField(exist = false)
    private String goodsName;

    /**
     * 仓库ID
     */
    @TableField(exist = false)
    private Long warehouseId;
}
