ytfl
3 天以前 04806e6ef049cd644023731fd48202d36355375b
#自动获取电视机配置信息
2个文件已修改
22 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/utils/Utils.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkMastMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/utils/Utils.java
@@ -122,7 +122,25 @@
        }
        return zerofill(String.valueOf(targetRow), 2) + shallowLoc.substring(2);
    }
    /**
     * 获取 浅库位对应的深库位号,如果没有深库位,则返回为空
     */
    public static String getDeepLoc2(SlaveProperties slaveProperties, String shallowLoc) {
        int row = getRow(shallowLoc);
        boolean deepLoc = isDeepLoc(slaveProperties, row);//判断是否为深库位
        if (deepLoc) {
            return null;
        }
        if (row == 1 || row == 6) {
            return null;
        }
        //2,8,11,15,19,23
        if (row == 5 || row == 8 || row == 12 || row == 16 || row == 20 || row == 24) {
            return zerofill(String.valueOf(row - 1), 2) + shallowLoc.substring(2);
        } else {
            return zerofill(String.valueOf(row + 1), 2) + shallowLoc.substring(2);
        }
    }
    /**
     * 获取 浅库位排对应的深库位排
     */
src/main/resources/mapper/WrkMastMapper.xml
@@ -195,6 +195,6 @@
    </select>
    <select id="selectLaneWrkMastOut" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13,14) and io_type>100 order by io_pri desc,io_time,wrk_no asc
        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13) and io_type>100 order by io_pri desc,io_time,wrk_no asc
    </select>
</mapper>