diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsStockReportService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsStockReportService.cs index a44d8e4b..ab1a2f9c 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsStockReportService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsStockReportService.cs @@ -51,11 +51,11 @@ namespace Tnb.WarehouseMgr }, true) .ToListAsync(); var carryCodes = await _db.Queryable().ToListAsync(); - var storeMap = items.DistinctBy(x=> new {x.warehouse_id,x.material_id }).ToDictionary(x => $"{x.warehouse_id}{x.material_id}", x => x); + var storeMap = items.DistinctBy(x=> new {x.warehouse_id,x.material_id }).ToDictionary(x => new {x.warehouse_id,x.material_id }, x => x); var result = items.GroupBy(g => new { g.warehouse_id, g.material_id }).Select(itGroup => { - storeMap.TryGetValue($"{itGroup.Key.warehouse_id}{itGroup.Key.material_id}", out var report); + storeMap.TryGetValue(itGroup.Key, out var report); WmsStockReportH stockReport = new(); stockReport.material_code = report?.material_code ?? ""; stockReport.mater_name = report?.mater_name ?? "";