自动化立体仓库 - WMS系统
skyouc
1 天以前 fcbc8ed5d4152d5b8b0a230e8074fb159bdd1989
src/main/java/com/zy/asrs/entity/BasContainer.java
@@ -1,5 +1,6 @@
package com.zy.asrs.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
@@ -34,22 +35,26 @@
    private String barcode;
    @ApiModelProperty("容器类型")
    private String type;
    private Long type;
    @ApiModelProperty("是否混放")
    @TableField("flag_mix")
    private Integer flagMix;
    @ApiModelProperty("最大混放种类")
    private Integer mixMax;
    @TableField("mix_max")
    private Double mixMax;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;
    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;
    public BasContainer() {}
@@ -57,7 +62,6 @@
    public BasContainer(String barcode) {
        this.barcode = barcode;
    }
    public String getType$() {
        if (Cools.isEmpty(type)) {
@@ -69,6 +73,8 @@
            return ContainerType.CONTAINER_TYPE_SALVER.desc;
        } else if (type.equals(ContainerType.CONTAINER_TYPE_CAGE.type)) {
            return ContainerType.CONTAINER_TYPE_CAGE.desc;
        } else if (type.equals(ContainerType.CONTAINER_TYPE_CAR.type)) {
            return ContainerType.CONTAINER_TYPE_CAR.desc;
        }
        return null;
    }
@@ -81,7 +87,7 @@
            return CommonEnum.COMMON_ENUM_N.desc;
        } else if (flagMix.equals(CommonEnum.COMMON_ENUM_Y.type)) {
            return CommonEnum.COMMON_ENUM_Y.desc;
        }
        }
        return null;
    }