sfd
2025-05-14 f306557dbcfc1583a45e26d86fdfe0aa4b446fb4
aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsPlateStandardRequireServiceImpl.java
@@ -175,7 +175,7 @@
        String batchNum= requireBatchService.getNewBatchNumber();
        /*获取钣金主单信息*/
        List<ApsPlatePlan> mainPlans = platePlanMapper.selectPlatePlanByPlantMajor(plantCode,mainOrderType);
        Hashtable<String, ApsMaterialStorageManagement> usedStorage = new Hashtable<>();
        Hashtable<String, BigDecimal> usedStorage = new Hashtable<>();
        log.info("开始生成需求:");
        for (ApsPlatePlan mainPlan : mainPlans) {
            String itemNumber = mainPlan.getItemNumber();
@@ -228,6 +228,10 @@
            }*/
        }
        usedStorage.forEach((key,value)->{
            log.info("料号:"+key+",库存:"+value);
        });
    }
    /**
@@ -251,7 +255,7 @@
                                List<ApsPlateStandardRequire> allRequires,
                                Long level,List<ApsPlateStandardRequireBomStockDetail> stockDetailsList,
                                List<ApsPlateStandardRequireBomOrderDetail> orderDetailsList,
                                 Hashtable<String, ApsMaterialStorageManagement> usedStorage
                                 Hashtable<String, BigDecimal> usedStorage
    ) {
        /*构建需求信息*/
        ApsPlateStandardRequire require = new ApsPlateStandardRequire();
@@ -316,7 +320,7 @@
                        , afterStockAmount, require.getId(), stockDetailsList
                );
                /*更新内存中的库存使用信息*/
               // usedStorage.put(itemCode, storage);
               usedStorage.put(itemCode, afterStockAmount);
            }
        }
        /*未匹配数量,默认为净需求*/