package com.fjhx.entity.water;

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-10-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WaterTransferDetails extends StorageBaseEntity {


    /**
     * 转仓id
     */
    private Long waterTransferId;

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

    /**
     * 接收人id
     */
    private Long receiveId;

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

    /**
     * 复合之前的数量
     */
    private BigDecimal oldQuantity;

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

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

    private String oldId;


}
