Container.java 6.27 KB
package com.huaheng.pc.config.container.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.huaheng.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel(value="com.huaheng.pc.config.container.domain.Container")
@TableName(value = "container")
public class Container implements Serializable {
    /**
     * 内部号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="内部号")
    @Excel(name = "内部号", type = Excel.Type.EXPORT)
    private Integer id;

    /**
     * 容器名字
     */
    @TableField(value = "name")
    @ApiModelProperty(value="容器名字")
    @Excel(name = "容器名字")
    private String name;

    /**
     * 容器编码
     */
    @TableField(value = "code")
    @ApiModelProperty(value="容器编码")
    @Excel(name = "容器编码")
    private String code;

    /**
     * 仓库代码
     */
    @TableField(value = "warehouseCode")
    @ApiModelProperty(value="仓库代码")
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /**
     * 货主编码
     */
    @TableField(value = "companyCode")
    @ApiModelProperty(value="货主编码")
    @Excel(name = "货主编码")
    private String companyCode;

    @TableField(value = "locationCode")
    @ApiModelProperty(value = "库位编码")
    private String locationCode;

    /**
     * 容器类型
     */
    @TableField(value = "containerType")
    @ApiModelProperty(value="容器类型")
    @Excel(name = "容器类型")
    private String containerType;


    /**
     * 容器类型
     */
    @TableField(value = "goodsShelfNo")
    @ApiModelProperty(value="AGV货架编码")
    @Excel(name = "AGV货架编码")
    private String goodsShelfNo;

    /**
     * 创建时间
     */
    @TableField(value = "created", fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date created;

    /**
     * 创建人
     */
    @TableField(value = "createdBy", fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private String createdBy;

    /**
     * 最后更新时间
     */
    @TableField(value = "lastUpdated", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="最后更新时间")
    private Date lastUpdated;

    /**
     * 最后更新人
     */
    @TableField(value = "lastUpdatedBy", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="最后更新人")
    private String lastUpdatedBy;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态")
    private String status;

    /**
     * 启用;0—禁用
     */
    @TableField(value = "enable")
    @ApiModelProperty(value="启用;0—禁用")
    @Excel(name = "是否启用", prompt = "启用;0 禁用:1")
    private Boolean enable;

    /**
     * 打印次数
     */
    @TableField(value = "printNum")
    @ApiModelProperty(value="打印次数")
    private Integer printNum;

    /**
     * 数据版本
     */
    @TableField(value = "version")
    @ApiModelProperty(value="数据版本")
    private Integer version;

    /**
     * 自定义字段1
     */
    @TableField(value = "userDef1")
    @ApiModelProperty(value="自定义字段1")
    private String userDef1;

    /**
     * 自定义字段2
     */
    @TableField(value = "userDef2")
    @ApiModelProperty(value="自定义字段2")
    private String userDef2;

    /**
     * 自定义字段3
     */
    @TableField(value = "userDef3")
    @ApiModelProperty(value="自定义字段3")
    private String userDef3;

    /**
     * 自定义字段4
     */
    @TableField(value = "userDef4")
    @ApiModelProperty(value="自定义字段4")
    private String userDef4;

    /**
     * 自定义字段5
     */
    @TableField(value = "userDef5")
    @ApiModelProperty(value="自定义字段5")
    private String userDef5;

    /**
     * 自定义字段6
     */
    @TableField(value = "userDef6")
    @ApiModelProperty(value="自定义字段6")
    private String userDef6;

    /**
     * 自定义字段7
     */
    @TableField(value = "userDef7")
    @ApiModelProperty(value="自定义字段7")
    private String userDef7;

    /**
     * 自定义字段8
     */
    @TableField(value = "userDef8")
    @ApiModelProperty(value="自定义字段8")
    private String userDef8;

    /**
     * 处理标记
     */
    @TableField(value = "processStamp")
    @ApiModelProperty(value="处理标记")
    private String processStamp;

  /**
   * 打印机名称
   * 当该类模板调用时
   */
  //    private static final String printName = "Bar Code Printer T-4503E";
  private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", companyCode=").append(companyCode);
        sb.append(", containerType=").append(containerType);
        sb.append(", goodsShelfNo=").append(goodsShelfNo);
        sb.append(", created=").append(created);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", lastUpdated=").append(lastUpdated);
        sb.append(", lastUpdatedBy=").append(lastUpdatedBy);
        sb.append(", status=").append(status);
        sb.append(", enable=").append(enable);
        sb.append(", printNum=").append(printNum);
        sb.append(", version=").append(version);
      //        sb.append(", printName").append(printName);
      sb.append(", userDef1=").append(userDef1);
        sb.append(", userDef2=").append(userDef2);
        sb.append(", userDef3=").append(userDef3);
        sb.append(", userDef4=").append(userDef4);
        sb.append(", userDef5=").append(userDef5);
        sb.append(", userDef6=").append(userDef6);
        sb.append(", userDef7=").append(userDef7);
        sb.append(", userDef8=").append(userDef8);
        sb.append(", processStamp=").append(processStamp);
        sb.append("]");
        return sb.toString();
    }
}