From 171ee7068e480ffe07638d030223790fb81fae81 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 10 12月 2024 15:31:51 +0800
Subject: [PATCH] 2

---
 CC/iWareCC_ASRS/Handler/DeviceWarningHandler.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CC/iWareCC_ASRS/Handler/DeviceWarningHandler.cs b/CC/iWareCC_ASRS/Handler/DeviceWarningHandler.cs
index b100a0d..774a7be 100644
--- a/CC/iWareCC_ASRS/Handler/DeviceWarningHandler.cs
+++ b/CC/iWareCC_ASRS/Handler/DeviceWarningHandler.cs
@@ -1,4 +1,5 @@
-锘縰sing iWareCommon.Common.Globle;
+锘縰sing Admin.NET.Application;
+using iWareCommon.Common.Globle;
 using iWareCommon.Utils;
 using iWareModel;
 using iWareSql.WmsDBModel;
@@ -27,7 +28,10 @@
             {
                 using (WmsDBModel edm = new WmsDBModel())
                 {
-                    dbList = edm.wms_config_device_warning.ToList();
+                    //娉ㄦ剰锛氬彧鏌ヨ  瀹夊叏鎶ヨ銆佺‖浠舵姤璀︿俊鎭�
+                    var query1 = (int)DeviceWarningTypeEnum.瀹夊叏鎶ヨ;
+                    var query2 = (int)DeviceWarningTypeEnum.纭欢鎶ヨ;
+                    dbList = edm.wms_config_device_warning.Where(x => x.DeviceWarningType == query1 || x.DeviceWarningType == query2).ToList();
                 }
                 foreach (var item in dbList)
                 {

--
Gitblit v1.9.3