| | |
| | | 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("最大混放种类") |
| | |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | |
| | | public String getType$() { |
| | | if (Cools.isEmpty(type)) { |
| | | return "料箱"; |
| | |
| | | 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; |
| | | } |
| | | |