| New file |
| | |
| | | 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; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.zy.asrs.enums.CommonEnum; |
| | | import com.zy.asrs.enums.ContainerType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("asr_bas_container") |
| | | public class BasContainer implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty(value= "主键") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 容器编码 |
| | | */ |
| | | @ApiModelProperty(value= "容器编码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty("容器类型") |
| | | private Long type; |
| | | |
| | | @ApiModelProperty("是否混放") |
| | | @TableField("flag_mix") |
| | | private Integer flagMix; |
| | | |
| | | @ApiModelProperty("最大混放种类") |
| | | private Integer mixMax; |
| | | |
| | | @ApiModelProperty("创建时间") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("修改时间") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | public BasContainer() {} |
| | | |
| | | public BasContainer(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | |
| | | public String getType$() { |
| | | if (Cools.isEmpty(type)) { |
| | | return "料箱"; |
| | | } |
| | | if (type.equals(ContainerType.CONTAINER_TYPE_BOX.type)) { |
| | | return ContainerType.CONTAINER_TYPE_BOX.desc; |
| | | } else if (type.equals(ContainerType.CONTAINER_TYPE_SALVER.type)) { |
| | | return ContainerType.CONTAINER_TYPE_SALVER.desc; |
| | | } else if (type.equals(ContainerType.CONTAINER_TYPE_CAGE.type)) { |
| | | return ContainerType.CONTAINER_TYPE_CAGE.desc; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getFlagMix$() { |
| | | if (Cools.isEmpty(flagMix)) { |
| | | return null; |
| | | } |
| | | if (flagMix.equals(CommonEnum.COMMON_ENUM_N.type)) { |
| | | return CommonEnum.COMMON_ENUM_N.desc; |
| | | } else if (flagMix.equals(CommonEnum.COMMON_ENUM_Y.type)) { |
| | | return CommonEnum.COMMON_ENUM_Y.desc; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |