package com.fjhx.entity.stock;

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;
import java.util.Date;

/**
 * <p>
 * 调仓
 * </p>
 *
 * @author ${author}
 * @since 2022-12-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StockTransfer extends BaseEntity {

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 调出仓库id
     */
    private Long outWarehouseId;

    /**
     * 调出数量
     */
    private BigDecimal outQuantity;

    /**
     * 调入仓库id
     */
    private Long inWarehouseId;

    /**
     * 调入数量
     */
    private BigDecimal inQuantity;

    /**
     * 接收人
     */
    private Long inUser;

    /**
     * 接收时间
     */
    private Date inTime;

    /**
     * 接受状态 0未接手 1已接收
     */
    private Integer inStatus;

    /**
     * 备注
     */
    private String remark;

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

}
