From efbe4cf490e556ab457132fdb24c0cb924af92e2 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Tue, 28 May 2024 11:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=9E=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E9=A2=86=E6=96=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChassisOperationSequenceAppService.cs | 6 +++--- .../UnplannedIssueRequestForDongyangAppService.cs | 4 ++-- .../Plans/CountPlans/CountPlanManager.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ChassisOperationSequence/ChassisOperationSequenceAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ChassisOperationSequence/ChassisOperationSequenceAppService.cs index e1708ab9a..b31df62ed 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ChassisOperationSequence/ChassisOperationSequenceAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/ChassisOperationSequence/ChassisOperationSequenceAppService.cs @@ -99,10 +99,10 @@ public class ChassisOperationSequenceAppService return await _chassisAppService.GetPagedListByFilterAsync(requestInput,false, cancellationToken).ConfigureAwait(false); } - public async Task<> GetBomWithKittingBom() - { + //public async Task<> GetBomWithKittingBom() + //{ - } + //} #region 无用 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(",");