自动化立体仓库 - WMS系统
#
Administrator
2023-06-10 cfc0e582c5ec110ae4b2b3e1a5ad36d013876c66
#
2个文件已修改
17 ■■■■■ 已修改文件
src/main/java/com/zy/common/service/CommonService.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocMastMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java
@@ -140,7 +140,7 @@
                end = 21;
                //203站分配2,3堆垛机
                crnNos.add(2);
//                crnNos.add(2);
                crnNos.add(3);
                //分配8,14,15,21排
@@ -217,7 +217,7 @@
        if (!sign){
            //----------------2023.06.02兼容代码,后期库位规则符合要求后可删除------------------------
            //如果以上都找不到库位,则强制搜索1、2堆垛机空库位进行入库,保障3号堆垛机库位都是符合要求的
            //如果以上都找不到库位,则强制搜索2堆垛机空库位进行入库,保障3号堆垛机库位都是符合要求的
            EntityWrapper<LocMast> wrapper = new EntityWrapper<>();
            wrapper.eq("loc_type1", locTypeDto.getLocType1());
            wrapper.in("crn_no", "2");
@@ -229,14 +229,9 @@
                    //内侧其他库位不是D、F、X。不能选取该库位
                    continue;
                }
                if(sourceStaNo==103 && mast.getRow1()>7)
                {
                    continue;
                }
                if(sourceStaNo==203 && mast.getRow1()<8)
                {
                    continue;
                }
                if(sourceStaNo==103 && mast.getRow1()>14) continue;
                if(sourceStaNo==103 && mast.getRow1()<8) continue;
                if(sourceStaNo==203 && mast.getRow1()<15) continue;
                //找到库位,返回dto
                locMast=mast;
                sign = true;
src/main/resources/mapper/LocMastMapper.xml
@@ -317,7 +317,7 @@
            #{item}
        </foreach>
        and loc_sts = 'O'
        <if test="crnNo != null || crnNo != ''">
        <if test="crnNo != null and crnNo != ''">
            and crn_no = #{crnNo}
        </if>
        order by bay1,lev1,row1