自动化立体仓库 - WMS系统
lsh
昨天 7e1420649451d5dc22ac49b3b31ba59df1edf19e
src/main/java/com/zy/asrs/entity/OrderDetlPakout.java
@@ -8,6 +8,7 @@
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasBoxTypeService;
import com.zy.asrs.service.OrderPakoutService;
import com.zy.asrs.service.OrderService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
@@ -259,7 +260,7 @@
    /**
     * 状态 1: 正常  0: 禁用
     */
    @ApiModelProperty(value= "状态 1: 正常  0: 禁用  ")
    @ApiModelProperty(value= "状态 1: 未上报  0: 禁用  2: 等待上报  3: 上报完成")
    private Integer status;
    /**
@@ -354,8 +355,8 @@
    }
    public String getOrderId$(){
        OrderService service = SpringUtils.getBean(OrderService.class);
        Order order = service.selectById(this.orderId);
        OrderPakoutService service = SpringUtils.getBean(OrderPakoutService.class);
        OrderPakout order = service.selectById(this.orderId);
        if (!Cools.isEmpty(order)){
            return String.valueOf(order.getId());
        }
@@ -435,9 +436,13 @@
        if (null == this.status){ return null; }
        switch (this.status){
            case 1:
                return "正常";
                return "未上报";
            case 0:
                return "禁用";
            case 2:
                return "等待上报";
            case 3:
                return "上报完成";
            default:
                return String.valueOf(this.status);
        }
@@ -476,6 +481,8 @@
    }
    public String getQty$(){
        if (this.qty == null) return "";
        if (this.anfme == null) return "无数据";
        if (this.anfme.equals(this.qty)){
            return "已完成";
        }
@@ -505,4 +512,20 @@
        return this.brand;
    }
    public int getBrandArmType$(){
        try{
            BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class);
            List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true));
            for (BasBoxType basBoxType:basBoxTypes){
                if (basBoxType.getArmType()!=1){
                    return 999;
                }
                return basBoxType.getArmType();
            }
            return 999;
        } catch (Exception e){
            return 999;
        }
    }
}