按客户预约库存分配库存;

This commit is contained in:
王奎兴
2026-07-09 18:11:02 +08:00
parent f7faed5e44
commit d45206a644
@@ -978,14 +978,14 @@ public class StockOutOrderApplicationService {
// String batchRefNo = detail.getBatchRefNo(); // String batchRefNo = detail.getBatchRefNo();
// String sheetRefNo = detail.getSheetRefNo(); // String sheetRefNo = detail.getSheetRefNo();
// String boxPalletNo = detail.getBoxPalletNo(); // String boxPalletNo = detail.getBoxPalletNo();
Long materialBaseInfoId = detail.getMaterialBaseInfoId(); // Long materialBaseInfoId = detail.getMaterialBaseInfoId();
Long warehouseId = detail.getWarehouseId(); // Long warehouseId = detail.getWarehouseId();
List<MaterialInventory> materialInventories = materialInventoryMapper.selectList(new QueryWrapper<MaterialInventory>().lambda() // List<MaterialInventory> materialInventories = materialInventoryMapper.selectList(new QueryWrapper<MaterialInventory>().lambda()
// .eq(MaterialInventory::getBatchRefNo, batchRefNo) //// .eq(MaterialInventory::getBatchRefNo, batchRefNo)
// .eq(MaterialInventory::getSheetRefNo, sheetRefNo) //// .eq(MaterialInventory::getSheetRefNo, sheetRefNo)
// .eq(MaterialInventory::getBoxPalletNo, boxPalletNo) //// .eq(MaterialInventory::getBoxPalletNo, boxPalletNo)
.eq(MaterialInventory::getWarehouseId, warehouseId) // .eq(MaterialInventory::getWarehouseId, warehouseId)
.eq(MaterialInventory::getMaterialBaseInfoId, materialBaseInfoId)); // .eq(MaterialInventory::getMaterialBaseInfoId, materialBaseInfoId));
// if (materialInventories == null || materialInventories.isEmpty()) { // if (materialInventories == null || materialInventories.isEmpty()) {
// throw new ServiceException("库存不存在:" + batchRefNo + " " + sheetRefNo + " " + boxPalletNo); // throw new ServiceException("库存不存在:" + batchRefNo + " " + sheetRefNo + " " + boxPalletNo);
// } // }