自动化立体仓库 - WMS系统
123
zhang
3 天以前 21d0e7ab9d5c7316225a3e9eecf465cd37c9bd85
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -3,6 +3,8 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocOwnerService;
import com.zy.common.utils.Synchro;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -165,6 +167,10 @@
    @ApiModelProperty(value= "客户信息ID")
    private Long owner;
    @ApiModelProperty(value= "物料类型")
    @TableField("mat_type_In")
    private Integer matTypeIn;
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
        switch (this.beBatch){
@@ -176,6 +182,16 @@
                return String.valueOf(this.beBatch);
        }
    }
    public String getOwner$(){
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class);
        LocOwner locOwner = service.selectById(this.owner);
        if (!Cools.isEmpty(locOwner)){
            return String.valueOf(locOwner.getOwner());
        }
        return null;
    }
    public String getSource$(){
        if (null == this.source){ return null; }
@@ -248,4 +264,20 @@
                return "";
        }
    }
    public String getMatTypeIn$() {
        if (this.matTypeIn == null) {
            return "默认";
        }
        switch (this.matTypeIn) {
            case 1:
                return "单品";
            case 2:
                return "高频";
            case 3:
                return "混放";
            default:
                return "默认";
        }
    }
}