|
@@ -179,11 +179,12 @@ public class StockPreparationServiceImpl implements StockPreparationService {
|
|
|
for (OrderSku orderSku : orderSkuList) {
|
|
|
|
|
|
Long skuSpecId = orderSku.getSkuSpecId();
|
|
|
- BigDecimal quantity = orderSku.getQuantity();
|
|
|
+ Long bomSpecId = orderSku.getBomSpecId();
|
|
|
Integer printType = orderSku.getPrintType();
|
|
|
+ BigDecimal quantity = orderSku.getQuantity();
|
|
|
|
|
|
ProductionTask productionTask = skuSpecIdProductionTaskMap.computeIfAbsent(
|
|
|
- skuSpecId + ":" + printType,
|
|
|
+ skuSpecId + ":" + bomSpecId + ":" + printType,
|
|
|
item -> {
|
|
|
SkuSpec skuSpec = skuSpecService.getById(skuSpecId);
|
|
|
Sku sku = skuService.getById(skuSpec.getSkuId());
|
|
@@ -192,7 +193,7 @@ public class StockPreparationServiceImpl implements StockPreparationService {
|
|
|
tempProductionTask.setId(IdWorker.getId());
|
|
|
tempProductionTask.setOrderId(orderSku.getOrderId());
|
|
|
tempProductionTask.setSkuSpecId(skuSpecId);
|
|
|
- tempProductionTask.setBomSpecId(skuSpec.getBomSpecId());
|
|
|
+ tempProductionTask.setBomSpecId(bomSpecId);
|
|
|
tempProductionTask.setCraftProductionLineId(sku.getCraftProductionLineId());
|
|
|
tempProductionTask.setMachinedPanel(skuSpec.getMachinedPanel());
|
|
|
tempProductionTask.setPrintType(printType);
|