| | |
| | | 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; |
| | | |
| | |
| | | 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() {} |
| | |
| | | public BasContainer(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | |
| | | public String getType$() { |
| | | if (Cools.isEmpty(type)) { |
| | |
| | | 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; |
| | | } |
| | |
| | | return CommonEnum.COMMON_ENUM_N.desc; |
| | | } else if (flagMix.equals(CommonEnum.COMMON_ENUM_Y.type)) { |
| | | return CommonEnum.COMMON_ENUM_Y.desc; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |