package com.fjhx.entity.water;

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

import java.math.BigDecimal;

/**
 * <p>
 * 退料明细
 * </p>
 *
 * @author ${author}
 * @since 2022-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WaterBackDetails extends StorageBaseEntity {


    /**
     * 退仓面料id
     */
    private Long waterBackId;

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

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

    /**
     * 原数量（复核之前米数）
     */
    private BigDecimal oldQuantity;

    /**
     * rfid
     */
    private String rfid;

    /**
     * 0 未复核 1已复核
     */
    private Integer status;

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

    private String oldId;


}
