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

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 sheetRefNo = detail.getSheetRefNo();
// String boxPalletNo = detail.getBoxPalletNo();
Long materialBaseInfoId = detail.getMaterialBaseInfoId();
Long warehouseId = detail.getWarehouseId();
List<MaterialInventory> materialInventories = materialInventoryMapper.selectList(new QueryWrapper<MaterialInventory>().lambda()
// .eq(MaterialInventory::getBatchRefNo, batchRefNo)
// .eq(MaterialInventory::getSheetRefNo, sheetRefNo)
// .eq(MaterialInventory::getBoxPalletNo, boxPalletNo)
.eq(MaterialInventory::getWarehouseId, warehouseId)
.eq(MaterialInventory::getMaterialBaseInfoId, materialBaseInfoId));
// Long materialBaseInfoId = detail.getMaterialBaseInfoId();
// Long warehouseId = detail.getWarehouseId();
// List<MaterialInventory> materialInventories = materialInventoryMapper.selectList(new QueryWrapper<MaterialInventory>().lambda()
//// .eq(MaterialInventory::getBatchRefNo, batchRefNo)
//// .eq(MaterialInventory::getSheetRefNo, sheetRefNo)
//// .eq(MaterialInventory::getBoxPalletNo, boxPalletNo)
// .eq(MaterialInventory::getWarehouseId, warehouseId)
// .eq(MaterialInventory::getMaterialBaseInfoId, materialBaseInfoId));
// if (materialInventories == null || materialInventories.isEmpty()) {
// throw new ServiceException("库存不存在:" + batchRefNo + " " + sheetRefNo + " " + boxPalletNo);
// }