自动化立体仓库 - WMS系统
123
zhang
3 天以前 21d0e7ab9d5c7316225a3e9eecf465cd37c9bd85
src/main/java/com/zy/asrs/entity/WaitPakinLog.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 io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -32,7 +34,7 @@
    @ApiModelProperty(value= "商品名称")
    private String maktx;
    @ApiModelProperty(value= "批号")
    @ApiModelProperty(value= "序列码")
    private String batch;
    @ApiModelProperty(value= "单据编号")
@@ -151,6 +153,26 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 物料类型{1:单品,2:高频,3:混放}
     */
    @ApiModelProperty(value= "物料类型")
    @TableField("mat_type")
    private Integer matType;
    @ApiModelProperty(value= "客户信息ID")
    private Long owner;
    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 getBeBatch$(){
        if (null == this.beBatch){ return null; }
        switch (this.beBatch){
@@ -215,4 +237,20 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public String getMatType$() {
        if (this.matType == null) {
            return "";
        }
        switch (this.matType) {
            case 1:
                return "单品";
            case 2:
                return "高频";
            case 3:
                return "混放";
            default:
                return "";
        }
    }
}