| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.TagService; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.zy.api.enums.MatLocType; |
| | | import com.zy.asrs.enums.ContainerType; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | * 品项数/最大组托数量 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @ExcelProperty(value = "品项数") |
| | |
| | | @ApiModelProperty(value= "重量") |
| | | @ExcelProperty(value = "重量") |
| | | private Double weight; |
| | | |
| | | @ApiModelProperty(value= "最大组托上限") |
| | | @ExcelProperty(value = "最大组托上限") |
| | | @TableField("up_qty") |
| | | private Double upQty; |
| | | |
| | | /** |
| | | * 长度 |
| | |
| | | @ApiModelProperty(value= "修改时间") |
| | | @TableField("update_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty("库位类型") |
| | | @TableField("loc_type") |
| | | @ExcelProperty(value = "库位类型") |
| | | private Long locType; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | // Mat mat = new Mat( |
| | | // null, // 编号 |
| | | // null, // 所属归类 |
| | | // null, // 商品编号 |
| | | // null, // 商品名称 |
| | | // null, // 别名 |
| | | // null, // 规格 |
| | | // null, // 型号 |
| | | // null, // 颜色 |
| | | // null, // 品牌 |
| | | // null, // 单位 |
| | | // null, // 单价 |
| | | // null, // sku |
| | | // null, // 单位量 |
| | | // null, // 条码 |
| | | // null, // 产地 |
| | | // null, // 厂家 |
| | | // null, // 生产日期 |
| | | // null, // 品项数 |
| | | // null, // 安全库存量 |
| | | // null, // 重量 |
| | | // null, // 长度 |
| | | // null, // 体积 |
| | | // null, // 三方编码 |
| | | // null, // 供应商 |
| | | // null, // 供应商编码 |
| | | // null, // 是否批次 |
| | | // null, // 保质期 |
| | | // null, // 预警天数 |
| | | // null, // 制购 |
| | | // null, // 要求检验 |
| | | // null, // 危险品 |
| | | // null, // 状态[非空] |
| | | // null, // 添加人员 |
| | | // null, // 添加时间 |
| | | // null, // 修改人员 |
| | | // null, // 修改时间 |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getTagId$(){ |
| | | TagService service = SpringUtils.getBean(TagService.class); |
| | | Tag tag = service.selectById(this.tagId); |
| | | if (!Cools.isEmpty(tag)){ |
| | | return String.valueOf(tag.getName()); |
| | | return MatLocType.getTagName(this.tagId + ""); |
| | | } |
| | | |
| | | public String getLocType$(){ |
| | | if (Cools.isEmpty(locType)) { |
| | | return "料箱"; |
| | | } |
| | | if (locType.equals(ContainerType.CONTAINER_TYPE_BOX.type)) { |
| | | return ContainerType.CONTAINER_TYPE_BOX.desc; |
| | | } else if (locType.equals(ContainerType.CONTAINER_TYPE_SALVER.type)) { |
| | | return ContainerType.CONTAINER_TYPE_SALVER.desc; |
| | | } else if (locType.equals(ContainerType.CONTAINER_TYPE_CAGE.type)) { |
| | | return ContainerType.CONTAINER_TYPE_CAGE.desc; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getProType(){ |
| | | return MatLocType.getMatTag(this.tagId + ""); |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |