From 93ac332b71fd1dada8d19643ae3f7f0423482abe Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 8 Jan 2025 16:48:34 +0800 Subject: [PATCH] fix . --- .../Organization/Services/Implements/GainfoStore.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoStore.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoStore.cs index ebcfdc0a..7ef16385 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoStore.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoStore.cs @@ -27,6 +27,11 @@ public class GainfoStore : IGainfoStore { gainfoStatus ??= GainfoStatusEnumType.Working; + if (gainfoStatus == GainfoStatusEnumType.Working) + { + return _dbContext.Queryable(); + } + var tableName = typeof(GainfoEntity).GetCustomAttribute()!.TableName; return _dbContext.Queryable().AS(tableName + gainfoStatus); }