diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs index 5c3aeae2c..4c34179fd 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs @@ -129,12 +129,12 @@ public class UnplannedIssueRequestForDongyangAppService : UnplannedIssueRequestA var balanceLst = await _balanceAppService.GetRecommendBalancesByLocationsAsync(input).ConfigureAwait(false); if (balanceLst.Count == 0) { - throw new UserFriendlyException($"GetRecommendBalancesByLocationsAsync返回0条记录"); + throw new UserFriendlyException($"无推荐库存!"); } var sumQty = balanceLst.Sum(itm => itm.Qty); if (detail.Qty > sumQty) { - throw new UserFriendlyException($"库存数量不足:GetRecommendBalancesByLocationsAsync"); + throw new UserFriendlyException($"库存数量不足!"); } foreach (var balance in balanceLst) { diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/CountPlans/CountPlanManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/CountPlans/CountPlanManager.cs index ec86709af..55709757f 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/CountPlans/CountPlanManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Plans/CountPlans/CountPlanManager.cs @@ -284,8 +284,8 @@ public class CountPlanManager : SfsStoreRequestManagerBasep.JobStatus == EnumJobStatus.Doing && p.CountPlanNumber == entity.Number && p.InventoryStage == entity.InventoryStage, true).ConfigureAwait(false); - var josbdeatils = jobs.Where(r=>r.InventoryStage==entity.InventoryStage).SelectMany(r => r.DepDetails); - var groups = josbdeatils.GroupBy(r => r.PackingCode).Where(g => g.Count() > 1&&!string.IsNullOrEmpty(g.Key)).Select(g => g.Key); + var josbdeatils = jobs.SelectMany(r => r.DepDetails); + var groups = josbdeatils.Where(r=>r.InventoryStage== entity.InventoryStage).GroupBy(r => r.PackingCode).Where(g => g.Count() > 1&&!string.IsNullOrEmpty(g.Key)).Select(g => g.Key); if (groups.Any()) { var mesagge= groups.JoinAsString(",");