From 17e4c7e3e7b3ef60d9da6de3b2a39a14a53c38a0 Mon Sep 17 00:00:00 2001
From: z8018 <1282578289@qq.com>
Date: 星期三, 12 三月 2025 14:11:33 +0800
Subject: [PATCH] 1

---
 WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs
index c6f49d2..0eaf755 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/DeviceInfoService.cs
@@ -33,27 +33,41 @@
 
 namespace WIDESEAWCS_QuartzJob.Service
 {
+    /// <summary>
+    /// 璁惧淇℃伅涓氬姟灞�
+    /// </summary>
     public class DeviceInfoService : ServiceBase<Dt_DeviceInfo, IDeviceInfoRepository>, IDeviceInfoService
     {
         private readonly IUnitOfWorkManage _unitOfWorkManage;
         private readonly IMapper _mapper;
+
+        /// <summary>
+        /// 璁惧淇℃伅涓氬姟灞�
+        /// </summary>
         public DeviceInfoService(IDeviceInfoRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, IMapper mapper) : base(BaseDal)
         {
             _unitOfWorkManage = unitOfWorkManage;
             _mapper = mapper;
         }
 
+        /// <summary>
+        /// 娣诲姞鏁版嵁
+        /// </summary>
+        /// <param name="saveModel"></param>
+        /// <returns></returns>
         public override WebResponseContent AddData(SaveModel saveModel)
         {
             return base.AddData(saveModel);
         }
 
+        /// <summary>
+        /// 鏌ヨ璁惧浠ュ強瀵瑰簲鐨勫崗璁俊鎭��
+        /// </summary>
+        /// <returns>杩斿洖璁惧淇℃伅浠ュ強瀵瑰簲鍗忚淇℃伅鐨勯泦鍚堛��</returns>
         public async Task<List<DeviceInfoDTO>> QueryDeviceProInfos()
         {
-            List<Dt_DeviceInfo> deviceInfos = await Db.Queryable<Dt_DeviceInfo>().Where(x => true).Includes(x => x.ProtocolList).ToListAsync();
+            List<Dt_DeviceInfo> deviceInfos = await Db.Queryable<Dt_DeviceInfo>().Where(x => x.DeviceStatus == ((int)DeviceStatusEnum.Enable).ToString()).Includes(x => x.ProtocolList).ToListAsync();
             return _mapper.Map<List<DeviceInfoDTO>>(deviceInfos);
         }
-
-       
     }
 }

--
Gitblit v1.9.3