public SingleObjectComponent GetSingleObjectComponent(int metaObjectId, int InterfaceFieldId, FilterDefinition <BsonDocument> condition) { var document = Get(metaObjectId, condition); SingleObjectComponent singleObjectComponent = new SingleObjectComponent { BizData = fieldBizDataService.ToBizDataDictionary(InterfaceFieldId, document), ColunmDatas = fieldListAggregationService.GetColumnDataByFieldListId(InterfaceFieldId).OrderBy(t => t.CmpData.ShowIndex).ToList() }; return(singleObjectComponent); }
public SingleObjectComponent GetSingleObjectComponent(QueryPiplineContext queryPiplineContext, FilterDefinition <BsonDocument> condition) { var fieldMetas = fieldListAggregationService.GetColumnDataByFieldListId(queryPiplineContext); var document = Get(queryPiplineContext.TenantId, queryPiplineContext.MetaObjectId, condition, fieldMetas?.Select(t => t.CmpData.Name)?.ToArray()); SingleObjectComponent singleObjectComponent = new SingleObjectComponent { BizData = fieldBizDataService.ToBizDataDictionary(queryPiplineContext, document), ColunmDatas = fieldMetas?.OrderBy(t => t.CmpData.ShowIndex)?.ToList() }; return(singleObjectComponent); }