自动化立体仓库 - WMS系统
75e92e196c01e33de751544ad037dc631c5edf61..7e1420649451d5dc22ac49b3b31ba59df1edf19e
2025-12-22 lsh
#getArmType$
7e1420 对比 | 目录
2025-12-22 lsh
#1901
a159d7 对比 | 目录
14个文件已修改
245 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/BasBoxType.java 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocDetl.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderDetl.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderDetlPakout.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakin.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakinLog.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlSingle.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/WrkMastStaInIt3Scheduler.java 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/basBoxType/basBoxType.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/basBoxType/basBoxType.html 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasBoxType.java
@@ -50,7 +50,19 @@
        this.boxType = boxType;
    }
//    BasBoxType basBoxType = new BasBoxType(
    public String getArmType$() {
        if (Cools.isEmpty(armType))  return "请选择结果";
        switch (armType) {
            case 1:
                return "允许";
            case 999:
                return "不允许";
            default:
                return "请选择结果";
        }
    }
    //    BasBoxType basBoxType = new BasBoxType(
//            null,    // 任务号[非空]
//            null    // 堆垛机
//    );
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -248,12 +248,19 @@
    }
    public int getBrandArmType$(){
        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){
            return basBoxType.getArmType();
        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;
        }
        return 999;
    }
    public String getModiTime$(){
src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -505,4 +505,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;
        }
    }
}
src/main/java/com/zy/asrs/entity/OrderDetlPakout.java
@@ -512,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;
        }
    }
}
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -255,11 +255,18 @@
    }
    public int getBrandArmType$(){
        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){
            return basBoxType.getArmType();
        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;
        }
        return 999;
    }
}
src/main/java/com/zy/asrs/entity/WaitPakinLog.java
@@ -237,4 +237,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;
        }
    }
}
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -404,6 +404,22 @@
        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;
        }
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -398,5 +398,21 @@
        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;
        }
    }
}
src/main/java/com/zy/asrs/entity/WrkDetlSingle.java
@@ -479,5 +479,21 @@
        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;
        }
    }
}
src/main/java/com/zy/asrs/task/WrkMastStaInIt2Scheduler.java
@@ -51,7 +51,7 @@
    }};
    public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{
        add(120);add(121);
        add(1901);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_THREE  = new ArrayList<Integer>() {{
        add(120);
@@ -343,6 +343,19 @@
                        if(Cools.isEmpty(wrkMast)){
                            continue;
                        }
                        if (wrkMast.getStaNo()==1901){
                            boolean sign1901 = false;
                            List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo());
                            for (WrkDetl wrkDetl : wrkDetlList1901){
                                if (wrkDetl.getBrandArmType$()==999){
                                    sign1901 = true;
                                    break;
                                }
                            }
                            if (sign1901){
                                continue;
                            }
                        }
                        if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){
                            continue;
                        }
@@ -350,7 +363,10 @@
                            continue;
                        }
                        Integer wrkMastStaNo = wrkMast.getStaNo();
                        if (wrkMastStaNo<118 || wrkMastStaNo>121){
                        if (wrkMastStaNo==1901){
                            wrkMastStaNo = 122;
                        }
                        if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){
                            continue;
                        }
                        String origin = null;
@@ -402,6 +418,9 @@
                                        }
                                    }
                                }
                                if (staNoOther==1901){
                                    staNoOther = 122;
                                }
                                int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther));
                                if (countOther!=0){
@@ -411,6 +430,9 @@
                                if (!basDevpOther.getAutoing().equals("Y") || basDevpOther.getWrkNo()!=0 || basDevpOther.getLoading().equals("Y") || basDevpOther.getReportSign()!=0) {
                                    continue;
                                }
                                if (staNoOther==122){
                                    staNoOther = 1901;
                                }
                                wrkMast.setStaNo(staNoOther);
                                wrkMastService.updateById(wrkMast);
                                log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo);
src/main/java/com/zy/asrs/task/WrkMastStaInIt3Scheduler.java
@@ -46,11 +46,11 @@
    }};
    public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{
        add(118);
        add(118);add(1901);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{
        add(1901);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_THREE  = new ArrayList<Integer>() {{
        add(118);
@@ -274,6 +274,19 @@
                        if(Cools.isEmpty(wrkMast)){
                            continue;
                        }
                        if (wrkMast.getStaNo()==1901){
                            boolean sign1901 = false;
                            List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo());
                            for (WrkDetl wrkDetl : wrkDetlList1901){
                                if (wrkDetl.getBrandArmType$()==999){
                                    sign1901 = true;
                                    break;
                                }
                            }
                            if (sign1901){
                                continue;
                            }
                        }
                        if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){
                            continue;
                        }
@@ -281,7 +294,10 @@
                            continue;
                        }
                        Integer wrkMastStaNo = wrkMast.getStaNo();
                        if (wrkMastStaNo<118 || wrkMastStaNo>121){
                        if (wrkMastStaNo==1901){
                            wrkMastStaNo = 122;
                        }
                        if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){
                            continue;
                        }
                        String origin = null;
@@ -333,6 +349,9 @@
                                        }
                                    }
                                }
                                if (staNoOther==1901){
                                    staNoOther = 122;
                                }
                                int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther));
                                if (countOther!=0){
@@ -342,6 +361,9 @@
                                if (!basDevpOther.getAutoing().equals("Y") || basDevpOther.getWrkNo()!=0 || basDevpOther.getLoading().equals("Y") || basDevpOther.getReportSign()!=0) {
                                    continue;
                                }
                                if (staNoOther==122){
                                    staNoOther = 1901;
                                }
                                wrkMast.setStaNo(staNoOther);
                                wrkMastService.updateById(wrkMast);
                                log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo);
src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
@@ -47,11 +47,10 @@
//        add(116);add(117);
    public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{
        add(118);add(120);add(121);
        add(118);add(120);add(121);add(1901);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{
        add(120);add(121);
        add(1901);
    }};
    public static final List<Integer> STA_WORK_CU_CAR_THREE  = new ArrayList<Integer>() {{
        add(118);add(120);
@@ -282,6 +281,19 @@
                        if(Cools.isEmpty(wrkMast)){
                            continue;
                        }
                        if (wrkMast.getStaNo()==1901){
                            boolean sign1901 = false;
                            List<WrkDetl> wrkDetlList1901 = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo());
                            for (WrkDetl wrkDetl : wrkDetlList1901){
                                if (wrkDetl.getBrandArmType$()==999){
                                    sign1901 = true;
                                    break;
                                }
                            }
                            if (sign1901){
                                continue;
                            }
                        }
                        if (wrkMast.getIoType()!=101 && wrkMast.getIoType()!=103){
                            continue;
                        }
@@ -289,7 +301,10 @@
                            continue;
                        }
                        Integer wrkMastStaNo = wrkMast.getStaNo();
                        if (wrkMastStaNo<118 || wrkMastStaNo>121){
                        if (wrkMastStaNo==1901){
                            wrkMastStaNo = 122;
                        }
                        if ((wrkMastStaNo<118 || wrkMastStaNo>121) && wrkMastStaNo!=122){
                            continue;
                        }
                        String origin = null;
@@ -355,7 +370,9 @@
                                        }
                                    }
                                }
                                if (staNoOther==1901){
                                    staNoOther = 122;
                                }
                                int countOther = wrkMastStaService.selectCount(new EntityWrapper<WrkMastSta>().eq("sta_start", staNoOther).or().eq("sta_end", staNoOther));
                                if (countOther!=0){
                                    continue;
@@ -369,6 +386,9 @@
                                        continue;
                                    }
                                }
                                if (staNoOther==122){
                                    staNoOther = 1901;
                                }
                                wrkMast.setStaNo(staNoOther);
                                wrkMastService.updateById(wrkMast);
                                log.info("工作号"+wrkMast.getWrkNo()+"修改目标站为:"+staNoOther+";原目标站为:"+wrkMastStaNo);
src/main/webapp/static/js/basBoxType/basBoxType.js
@@ -25,6 +25,7 @@
            {field: 'id', align: 'center',title: 'ID' ,hide : true},
            {field: 'boxSpecs', align: 'center',title: '箱型',hide : false}
            ,{field: 'boxType', align: 'center',title: '箱型编号',hide : false}
            ,{field: 'armType$', align: 'center',title: '是否允许机械臂执行',hide : false}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120}
        ]],
src/main/webapp/views/basBoxType/basBoxType.html
@@ -84,6 +84,22 @@
                        <input class="layui-input" name="boxType" placeholder="请输入箱型编号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">箱型编号(桁架机械臂用): </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="armType" placeholder="请输入箱型编号">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否允许机械臂执行: </label>
                    <div class="layui-input-block">
                        <select name="armType">
                            <option value="0">请选择结果</option>
                            <option value="1">允许</option>
                            <option value="999">不允许</option>
                        </select>
                    </div>
                </div>
             </div>
        </div>