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

/**
 * 批次对象 sys_batch
 *
 * @author lch
 * @date 2022-04-09
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_batch")
public class SysBatch 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 goodId;


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


    /**
     * 包装ID
     */
    @Excel(name = "包装ID", width = 20)
    private Long packageId;


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


    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date productionDate;


    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date expiredDate;


    /**
     * 厂家
     */
    @Excel(name = "厂家", width = 20)
    private String factory;


    /**
     * 生产地
     */
    @Excel(name = "生产地", width = 20)
    private String waster;


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


    /**
     * 备注
     */
    @Excel(name = "备注", width = 20)
    private String remark;


    /**
     * 创建时间
     */
    @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;


}
