自动化立体仓库 - WMS系统
pang.jiabao
2024-10-19 71404114337f70f3d3134d2e272af6e5738f7bad
src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -4,8 +4,10 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
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.asrs.service.OrderService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
@@ -395,14 +397,14 @@
    }
    public String getInspect$(){
        if (null == this.inspect){ return null; }
        if (null == this.inspect){ return "待备货"; }
        switch (this.inspect){
            case 1:
                return "是";
            case 0:
                return "否";
                return "备货中";
            case 2:
                return "已备货";
            default:
                return String.valueOf(this.inspect);
                return "待备货";
        }
    }
@@ -415,14 +417,14 @@
    }
    public String getDanger$(){
        if (null == this.danger){ return null; }
        if (null == this.danger){ return "待移库"; }
        switch (this.danger){
            case 1:
                return "是";
            case 0:
                return "否";
                return "移库中";
            case 2:
                return "移库完成";
            default:
                return String.valueOf(this.danger);
                return "待移库";
        }
    }
@@ -491,4 +493,13 @@
        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;
    }
}