From f8b47e066775ffe7586066bc273d66d463fc512d Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Fri, 11 Jul 2025 16:14:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/JiShe.IoT.Application/CommonServices/CommonService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/JiShe.IoT.Application/CommonServices/CommonService.cs b/src/JiShe.IoT.Application/CommonServices/CommonService.cs index eb06cbd..acf92c8 100644 --- a/src/JiShe.IoT.Application/CommonServices/CommonService.cs +++ b/src/JiShe.IoT.Application/CommonServices/CommonService.cs @@ -3,6 +3,8 @@ using JiShe.ServicePro.Commons; using JiShe.ServicePro.Core; using System.Collections.Concurrent; using System.Collections.Generic; +using System.ComponentModel; +using static FreeSql.Internal.GlobalFilter; namespace JiShe.IoT.CommonServices { @@ -21,8 +23,10 @@ namespace JiShe.IoT.CommonServices foreach (var typeInfoItem in typeList) { + SelectResultAttribute[] selectResultAttribute = + (SelectResultAttribute[])typeInfoItem.GetCustomAttributes(typeof(SelectResultAttribute), false); - _selectListType.TryAdd(typeInfoItem.Name, CommonHelper.GetEnumAttributeList(typeInfoItem)); + _selectListType.TryAdd(typeInfoItem.Name, CommonHelper.GetTypeAttributeList(typeInfoItem, selectResultAttribute[0].IsGetPropertie)); } }