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)); } }