自动化立体仓库 - WMS系统
pang.jiabao
2024-09-19 80cd1569120416b096d28ebbe9a8e6e1d867f6e0
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -2,7 +2,10 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasBoxTypeService;
import com.zy.common.utils.Synchro;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -64,7 +67,7 @@
    @ApiModelProperty(value= "单位")
    private String unit;
    @ApiModelProperty(value= "单价")
    @ApiModelProperty(value= "单价 长度")
    private Double price;
    @ApiModelProperty(value= "sku")
@@ -103,7 +106,7 @@
    @ApiModelProperty(value= "长度")
    private Double length;
    @ApiModelProperty(value= "体积")
    @ApiModelProperty(value= "体积  毛重")
    private Double volume;
    @ApiModelProperty(value= "三方编码")
@@ -163,6 +166,13 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 卷信息ID
     */
    @ApiModelProperty(value= "卷信息ID")
    @TableField("roll_up")
    private Long rollUp;
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
@@ -231,4 +241,13 @@
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
    public String getBrand$(){
        BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class);
        BasBoxType basBoxType = basBoxTypeService.selectOne(new EntityWrapper<BasBoxType>().eq("box_type", this.brand));
        if (!Cools.isEmpty(basBoxType)){
            return String.valueOf(basBoxType.getBoxSpecs());
        }
        return this.brand;
    }
}