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.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 货位移动明细对象 busin_stock_move_d
 *
 * @author lch
 * @date 2022-06-10
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("busin_stock_move_d")
public class BusinStockMoveD implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "主键ID", width = 20)
    private Long id;


    /**
     * 单号
     */
    @Excel(name = "单号", width = 20)
    private String orderNo;


    /**
     * 移出库位ID
     */
    @Excel(name = "移出库位ID", width = 20)
    private Long outLocationId;

    /**
     * 移出托盘
     */
    @Excel(name = "移出托盘", width = 20)
    private String outLocationCode;

    /**
     * 移出托盘
     */
    @Excel(name = "移出托盘", width = 20)
    private String outContainerCode;


    /**
     * 移入库位ID
     */
    @Excel(name = "移入库位ID", width = 20)
    private Long inLocationId;


    /**
     * 移入托盘
     */
    @Excel(name = "移入托盘", width = 20)
    private String inLocationCode;


    /**
     * 商品ID
     */
    @Excel(name = "商品ID", width = 20)
    private Long moldId;


    /**
     * 模具条形码
     */
    private String moldBarcode;


    /**
     * 模具编码
     */
    private String moldNo;


    /**
     * 移库状态 1移库中： 2：已完成）
     */
    @Excel(name = "移库状态", width = 15)
    private String moveStatus;


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


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


    /**
     * 移库原因
     */
    private String reason;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date createTime;


    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建人", width = 20)
    private String createBy;


    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date updateTime;


    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "修改人", width = 20)
    private String updateBy;


}
