From 3e9f34e739e0145ff5b20495cc33e699a4e6c764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=B9=E6=B5=B7?= Date: Tue, 9 Sep 2025 13:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A0=81=E6=A0=BC=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/DataCacheModule/DBCacheManager.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/YLErpDAL/Modules/DataCacheModule/DBCacheManager.cs b/YLErpDAL/Modules/DataCacheModule/DBCacheManager.cs index 8e288b79..059ce027 100644 --- a/YLErpDAL/Modules/DataCacheModule/DBCacheManager.cs +++ b/YLErpDAL/Modules/DataCacheModule/DBCacheManager.cs @@ -69,7 +69,7 @@ namespace YLErp.Modules.DataCacheModule } } - public string GetStr(string key, string template = "默认") + public string GetStr(string key, string template = "榛樿") { if (string.IsNullOrEmpty(key)) { @@ -93,7 +93,7 @@ namespace YLErp.Modules.DataCacheModule } } - public void UpdateObj(string key, string value, string template = "默认") + public void UpdateObj(string key, string value, string template = "榛樿") { if (string.IsNullOrEmpty(key)) { @@ -121,7 +121,7 @@ namespace YLErp.Modules.DataCacheModule /// Type /// The key of the value to get. /// The value associated with the specified key. - public virtual T Get(string key, string template = "默认") where T : new() + public virtual T Get(string key, string template = "榛樿") where T : new() { if (!string.IsNullOrEmpty(key) && CacheDic.TryGetValue(key + template, out CacheTable ca)) { @@ -136,7 +136,7 @@ namespace YLErp.Modules.DataCacheModule /// key /// Data /// Cache time - public virtual void Set(string key, object data, int cacheTime = CacheTimeout, string template = "默认") + public virtual void Set(string key, object data, int cacheTime = CacheTimeout, string template = "榛樿") { if (string.IsNullOrEmpty(key) || data == null) { @@ -180,7 +180,7 @@ namespace YLErp.Modules.DataCacheModule /// /// key /// Result - public virtual bool IsSet(string key, string template = "默认") + public virtual bool IsSet(string key, string template = "榛樿") { return !string.IsNullOrEmpty(key + template) && CacheDic.ContainsKey(key + template); } @@ -189,7 +189,7 @@ namespace YLErp.Modules.DataCacheModule /// Removes the value with the specified key from the cache /// /// /key - public virtual void Remove(string key, string template = "默认") + public virtual void Remove(string key, string template = "榛樿") { if (string.IsNullOrEmpty(key)) { @@ -214,11 +214,11 @@ namespace YLErp.Modules.DataCacheModule List fliterList = new List(); switch (reportType) { - case "交易明细": fliterList = TradeDetailReport; break; - case "互换明细": fliterList = TradeSwapDetailReport; break; - case "结算报告": fliterList = ClientBalanceReport; break; + case "浜ゆ槗鏄庣粏": fliterList = TradeDetailReport; break; + case "浜掓崲鏄庣粏": fliterList = TradeSwapDetailReport; break; + case "缁撶畻鎶ュ憡": fliterList = ClientBalanceReport; break; default: - throw new ServiceException("错误的报告类型"); + throw new ServiceException("閿欒鐨勬姤鍛婄被鍨"); } using (ErpBaseContext db = new ErpBaseContext()) { @@ -231,11 +231,11 @@ namespace YLErp.Modules.DataCacheModule List fliterList = new List(); switch (reportType) { - case "交易明细": fliterList = TradeDetailReport; break; - case "互换明细": fliterList = TradeSwapDetailReport; break; - case "结算报告": fliterList = ClientBalanceReport; break; + case "浜ゆ槗鏄庣粏": fliterList = TradeDetailReport; break; + case "浜掓崲鏄庣粏": fliterList = TradeSwapDetailReport; break; + case "缁撶畻鎶ュ憡": fliterList = ClientBalanceReport; break; default: - throw new ServiceException("错误的报告类型"); + throw new ServiceException("閿欒鐨勬姤鍛婄被鍨"); } using (ErpBaseContext db = new ErpBaseContext()) { @@ -247,7 +247,7 @@ namespace YLErp.Modules.DataCacheModule } else { - throw new ServiceException("不存在 " + needDel + " 模板"); + throw new ServiceException("涓嶅瓨鍦 " + needDel + " 妯℃澘"); } } }