소스 검색

备料提交

24282 1 년 전
부모
커밋
eee492ed9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sd-business/src/main/java/com/sd/business/service/production/impl/StockPreparationServiceImpl.java

+ 1 - 1
sd-business/src/main/java/com/sd/business/service/production/impl/StockPreparationServiceImpl.java

@@ -237,6 +237,7 @@ public class StockPreparationServiceImpl implements StockPreparationService {
 
         List<OrderSkuBom> orderSkuBomList = orderSkuBomService.list(q -> q.in(OrderSkuBom::getOrderId, orderIdList));
 
+        // 合并sku主材和包材
         Stream<InOutStorageBom> streamList = Stream.concat(
                 orderSkuList.stream().map(item -> {
                     InOutStorageBom inOutStorageBom = new InOutStorageBom();
@@ -255,7 +256,6 @@ public class StockPreparationServiceImpl implements StockPreparationService {
         List<Long> bomSpecIdList = streamList.map(InOutStorageBom::getBomSpecId).collect(Collectors.toList());
         Map<Long, BomSpecBo> bomSpecBo = skuSpecService.getBomSpecBoByIdList(bomSpecIdList);
 
-
         // 主材从半成品仓出库
         InOutStorageDto semiFinishedProduct = new InOutStorageDto();
         semiFinishedProduct.setType(InOutTypeEnum.OUT.getKey());