package com.fjhx.entity.stock;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.fjhx.base.StorageBaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 库存表
 * </p>
 *
 * @author ${author}
 * @since 2022-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Stock extends StorageBaseEntity {


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

    /**
     * 件数
     */
    private Integer number;

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

    /**
     * 盘点id
     */
    private Long checkId;

    /**
     * 盘点状态（0未发起，1已发起）
     */
    private Integer checkStatus;

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

    private String oldId;


}
