package com.wms_main.excel.easypoi.excelTemplate;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 盘点记录缓存模版
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InventoryRecordExcelTemplateForSave {
    /**
     * 盘点id
     */
    @Excel(name = "inventory_id")
    private String inventoryId;
    /**
     * 料号
     */
    @Excel(name = "goods_id")
    private String goodsId;
    /**
     * 载具号
     */
    @Excel(name = "vehicle_id")
    private String vehicleId;
    /**
     * 库存数量
     * 只记录盘点确认时间点
     */
    @Excel(name = "stock_num")
    private Integer stockNum;
    /**
     * 确认数量
     */
    @Excel(name = "confirm_num")
    private Integer confirmNum;
    /**
     * 盘点站台
     */
    @Excel(name = "inv_stand")
    private String invStand;
    /**
     * 盘点人
     */
    @Excel(name = "inv_user")
    private String invUser;
    /**
     * 盘点类型：1：明盘；2：盲盘
     */
    @Excel(name = "inv_type")
    private Integer invType;
    /**
     * 盘点状态
     * 1. 初始化
     * 2. 已解析
     * 3. 数量确认
     * 4. 盘点关闭
     */
    @Excel(name = "inv_status")
    private Integer invStatus;
    /**
     * 盘点结果
     * -1: 盘亏
     * 0: 正常
     * 1: 盘盈
     */
    @Excel(name = "inv_result")
    private Integer invResult;
    /**
     * 盘点任务创建时间
     */
    @Excel(name = "inv_create_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime invCreateTime;
    /**
     * 盘点确认时间
     */
    @Excel(name = "inv_confirm_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime invConfirmTime;
    /**
     * 这个字段用于合并哪些任务是同一时间下发的
     */
    @Excel(name = "inv_order_id")
    private String invOrderId;
}
