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