From 9719a7f0ccbb70e4e51a93cbe1733d1424c16f6d Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 06 十二月 2024 12:03:56 +0800 Subject: [PATCH] 优化Api数据库缓存模块,增加MES岗位缓存跟不良代码缓存 --- Tiger.Business.MES/WorkAction/YadaAssembly.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/YadaAssembly.cs b/Tiger.Business.MES/WorkAction/YadaAssembly.cs index e199743..3be3ab7 100644 --- a/Tiger.Business.MES/WorkAction/YadaAssembly.cs +++ b/Tiger.Business.MES/WorkAction/YadaAssembly.cs @@ -162,9 +162,9 @@ //鏍规嵁鏉$爜瑙勫垯楠岃瘉涓婃枡鏄惁姝g‘ if (!item.RuleCode.IsNullOrEmpty()) { - if (!Biz.CodeRule[item.RuleCode].IsNullOrEmpty()) + if (!Cache.CodeRule[item.RuleCode].IsNullOrEmpty()) { - var result = Biz.CodeRule[item.RuleCode].Verify(input.SN); + var result = Cache.CodeRule[item.RuleCode].Verify(input.SN); if (!result.IsSuccessed) { isOK = false; @@ -190,9 +190,9 @@ { if (!subItem.RULE_CODE.IsNullOrEmpty()) { - if (!Biz.CodeRule[subItem.RULE_CODE].IsNullOrEmpty()) + if (!Cache.CodeRule[subItem.RULE_CODE].IsNullOrEmpty()) { - var result = Biz.CodeRule[item.RuleCode].Verify(input.SN); + var result = Cache.CodeRule[item.RuleCode].Verify(input.SN); //鍙鏈変竴涓浛浠f枡閫氳繃楠岃瘉鍒欏彲浠ヤ笂鏂� if (result.IsSuccessed) { -- Gitblit v1.9.3