package com.wms_main.model.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 库存对比结果表映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_app_stock_compare", autoResultMap = true)
public class TAppStockCompare {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 物料编号
     */
    @TableField(value = "goods_id")
    private String goodsId;

    /**
     * 物料描述
     */
    @TableField(value = "goods_desc")
    private String goodsDesc;

    /**
     * WMS总数量
     */
    @TableField(value = "wms_total_num")
    private Integer wmsTotalNum;

    /**
     * EWM总数量
     */
    @TableField(value = "ewm_total_num")
    private Integer ewmTotalNum;

    /**
     * 特殊库存标识（E,K,Q)
     */
    @TableField(value = "special_stock")
    private String specialStock;

    /**
     * SO单号与供应商编号
     */
    @TableField(value = "special_stock_no")
    private String specialStockNo;

    /**
     * 特殊库存item号
     */
    @TableField(value = "special_stock_item_no")
    private String specialStockItemNo;

    /**
     * 批次号
     */
    @TableField(value = "batch_no")
    private String batchNo;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;


    /**
     * 对比状态
     * 0: 数量一致
     * 1: WMS多于EWM
     * -1: EWM多于WMS
     * 2: WMS有EWM没有
     * -2: EWM有WMS没有
     */
    @TableField(value = "compare_status")
    private Integer compareStatus;
}

