package com.yh.saas.plugin.yiliangyiyun.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录折转信息
 * </p>
 *
 * @author Gdc
 * @since 2022-01-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("turn_info")
public class TurnInfo extends BaseModel<TurnInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 关联ID
     */
    private String relationId;
    /**
     * 仓库id
     */
    private String baseId;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 仓位编号id
     */
    private String positionId;
    /**
     * 折转后仓位编号id
     */
    private String afterPositionId;
    /**
     * 折转前重量(吨)
     */
    private Float beforeWeight;
    /**
     * 折转后重量(吨)
     */
    private Float afterWeight;
    /**
     * 折转前仓位
     */
    private String beforeBinNo;
    /**
     * 折转后仓位
     */
    private String afterBinNo;
    /**
     * 折转前货名key
     */
    private String beforeGoodsNameKey;
    /**
     * 折转前货名
     */
    private String beforeGoodsName;
    /**
     * 折转后货名key
     */
    private String afterGoodsNameKey;
    /**
     * 折转后货名
     */
    private String afterGoodsName;
    /**
     * 折转类型
     */
    private String afterType;
    /**
     * 操作人
     */
    private String backOffice;

    /**
     *出入库对象
     */
    @TableField(exist = false)
    private WarehousePositionInfo warehousePositionInfo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
