From 6a72dc4cd7bc47b08c03562ef4fbed6b66701f20 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 13 5月 2025 17:09:21 +0800 Subject: [PATCH] 库位禁用字段 --- 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