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/Assembly.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Tiger.Business.MES/WorkAction/Assembly.cs b/Tiger.Business.MES/WorkAction/Assembly.cs
index 7173fd3..b3eab36 100644
--- a/Tiger.Business.MES/WorkAction/Assembly.cs
+++ b/Tiger.Business.MES/WorkAction/Assembly.cs
@@ -158,9 +158,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;
@@ -186,9 +186,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