| | |
| | | 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(); |
| | |
| | | }*/ |
| | | |
| | | } |
| | | usedStorage.forEach((key,value)->{ |
| | | log.info("料号:"+key+",库存:"+value); |
| | | }); |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | List<ApsPlateStandardRequire> allRequires, |
| | | Long level,List<ApsPlateStandardRequireBomStockDetail> stockDetailsList, |
| | | List<ApsPlateStandardRequireBomOrderDetail> orderDetailsList, |
| | | Hashtable<String, ApsMaterialStorageManagement> usedStorage |
| | | Hashtable<String, BigDecimal> usedStorage |
| | | ) { |
| | | /*构建需求信息*/ |
| | | ApsPlateStandardRequire require = new ApsPlateStandardRequire(); |
| | |
| | | , afterStockAmount, require.getId(), stockDetailsList |
| | | ); |
| | | /*更新内存中的库存使用信息*/ |
| | | // usedStorage.put(itemCode, storage); |
| | | usedStorage.put(itemCode, afterStockAmount); |
| | | } |
| | | } |
| | | /*未匹配数量,默认为净需求*/ |