diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs index 129e99eb1..c972c9179 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs @@ -450,7 +450,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase private async Task CheckPackingCode(string packingCode) { var packingcode = await _expectOutAppService.GetListByPackingCodeAsync(packingCode).ConfigureAwait(false); - if (packingcode != null && packingCode.Any()) + if (packingcode != null && packingCode.Length>0) { throw new UserFriendlyException($"箱码{packingCode}在预计出中已存在!"); }