package com.shkj.wms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shkj.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 库存流水对象 sys_stock_detail
 *
 * @author voidlove
 * @date 2022-05-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_stock_detail")
public class SysStockDetail implements Serializable {

private static final long serialVersionUID=1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "${comment}", width = 15 )
    private Long id;


    /**
     * 货主ID
     */
    @Excel(name = "货主ID", width = 20)
    private Long consignorId;


    /**
     * 仓ID
     */
    @Excel(name = "仓ID", width = 20)
    private Long branchId;


    /**
     * 库房ID
     */
    @Excel(name = "库房ID", width = 20)
    private Long storageId;


    /**
     * 库房区域ID
     */
    @Excel(name = "库房区域ID", width = 20)
    private Long areaId;


    /**
     * 巷道
     */
    @Excel(name = "巷道", width = 20)
    private String tunnel;




    /**
     * 产品编号
     */
    @Excel(name = "产品编号", width = 20)
    private String goodsNo;

    /**
     * 产品条码
     */
    @Excel(name = "产品条码", width = 20)
    private String qrCode;


    /**
     * 治具编号
     */
    @Excel(name = "治具编号", width = 20)
    private Long containerCode;


    /**
     * 数量
     */
    @Excel(name = "数量", width = 20)
    private BigDecimal qty;

    /**
     * 预出库
     */
    @Excel(name = "预出库标识")
    private Integer outQty;

    /**
     * 仓库库位ID
     */
    @Excel(name = "仓库库位ID", width = 20)
    private Long locationId;


    /**
     * 批次
     */
    @Excel(name = "批次", width = 20)
    private String batch;


    /**
     * 需要冲孔
     */
    @Excel(name = "库存状态", width = 15 )
    private String isPuch;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date inTime;


    /**
     * 出庫时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date outTime;


    /**
     * createTime
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * updateTime
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
