自动化立体仓库 - WMS系统
skyouc
1 天以前 91aa478d200d53ecf5e3032ce7f7e026a218e526
src/main/java/com/zy/asrs/entity/Mat.java
@@ -7,6 +7,10 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zy.api.enums.MatLocType;
import com.zy.asrs.enums.ContainerType;
import com.zy.asrs.service.BasContainerService;
import com.zy.asrs.service.TagService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
@@ -164,7 +168,7 @@
    private String manuDate;
    /**
     * 品项数
     * 品项数/最大组托数量
     */
    @ApiModelProperty(value= "品项数")
    @ExcelProperty(value = "品项数")
@@ -185,6 +189,11 @@
    @ApiModelProperty(value= "重量")
    @ExcelProperty(value = "重量")
    private Double weight;
    @ApiModelProperty(value= "最大组托上限")
    @ExcelProperty(value = "最大组托上限")
    @TableField("up_qty")
    private Double upQty;
    /**
     * 长度
@@ -298,7 +307,13 @@
    @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;
    /**
     * 备注
@@ -408,10 +423,24 @@
//    );
    public String getTagId$(){
        TagService service = SpringUtils.getBean(TagService.class);
        Tag tag = service.selectById(this.tagId);
        if (!Cools.isEmpty(tag)){
            return String.valueOf(tag.getName());
//        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;
    }