自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-05-30 d982a9c302d96658c3a1b126b319c0de4757d813
#
1个文件已修改
31 ■■■■■ 已修改文件
src/main/java/com/zy/common/service/CommonService.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java
@@ -96,6 +96,7 @@
     */
    @Transactional
    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, int times) {
        whsType = getWhsType(staDescId, times);
        StartupDto startupDto = new StartupDto();
        // 生成工作号
        int workNo = getWorkNo(0);
@@ -276,4 +277,34 @@
        }
    }
    /**
     * 根据入库站获取库位排号分配
     */
    private Integer getWhsType(Integer staDescId, int times) {
        if (times >= 16) {
            return 4;
        }
        switch (staDescId) {
            case 173:
            case 176:
            case 180:
            case 185:
                return 1;
            case 189:
            case 194:
            case 198:
            case 202:
                return 2;
            case 206:
            case 211:
            case 215:
            case 219:
            case 223:
            case 226:
                return 3;
            default:
                throw new CoolException("根据入库站获取库位排号分配失败,入库站:" + staDescId);
        }
    }
}