From 5c5a26ca4f99953d06e75010eed5b0b59dff3b3f Mon Sep 17 00:00:00 2001 From: song zhou <1759742460@qq.com> Date: 周日, 18 5月 2025 19:44:26 +0800 Subject: [PATCH] wcs交互 --- HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Repositories/EfCoreWmsAreaRepository.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Repositories/EfCoreWmsAreaRepository.cs b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Repositories/EfCoreWmsAreaRepository.cs index 64d4d26..5fc6614 100644 --- a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Repositories/EfCoreWmsAreaRepository.cs +++ b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Repositories/EfCoreWmsAreaRepository.cs @@ -24,15 +24,14 @@ } /// <inheritdoc /> - public virtual async Task<WmsArea> FindByNameAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task<WmsArea> FindByNameAsync(string areaNo, CancellationToken cancellationToken = default) { return await (await GetDbSetAsync()) .IncludeDetails() .OrderBy(t => t.Sort) .Where(x => !x.IsDeleted) - .FirstOrDefaultAsync(t => t.AreaName == name, GetCancellationToken(cancellationToken)); + .FirstOrDefaultAsync(t => t.AreaNo == areaNo, GetCancellationToken(cancellationToken)); } - /// <summary> /// 查看库区是否存在 @@ -88,6 +87,7 @@ public async Task<List<WmsArea>> GetListForSelectAsync(CancellationToken cancellationToken = default) { return await (await GetDbSetAsync()) + .Where(x => !x.IsDeleted) .ToListAsync(GetCancellationToken(cancellationToken)); } -- Gitblit v1.9.3