/// <summary>
        /// 根据模型ID查询模型详细信息
        /// </summary>
        /// <param name="jc_LargedataAnalysisConfigRsequest"></param>
        /// <returns></returns>
        public BasicResponse <List <JC_LargedataAnalysisConfigInfo> > GetLargedataAnalysisConfigDetailById(LargedataAnalysisConfigGetRequest jc_LargedataAnalysisConfigRsequest)
        {
            var jC_Largedataanalysisconfigresponse = new BasicResponse <List <JC_LargedataAnalysisConfigInfo> >();

            try
            {
                DataTable dataTable = _Repository.QueryTable("global_LargedataAnalysisConfigService_GetLargedataAnalysisConfigDetailById", jc_LargedataAnalysisConfigRsequest.Id);

                List <JC_LargedataAnalysisConfigInfo> listResult = ObjectConverter.Copy <JC_LargedataAnalysisConfigInfo>(dataTable);

                List <JC_SetAnalysisModelPointRecordInfo> setAnalysisModelPointRecordInfoList = new List <JC_SetAnalysisModelPointRecordInfo>();

                if (listResult.Count > 0)
                {
                    setAnalysisModelPointRecordInfoList = _AnalysisModelPointRecordService.GetSetAnalysisModelPointRecordByLargedataAnalysisConfigId(
                        new SetAnalysisModelPointRecordByModelIdGetRequest()
                    {
                        AnalysisModelId = jc_LargedataAnalysisConfigRsequest.Id
                    }).Data;

                    foreach (var item in listResult)
                    {
                        foreach (var itemData in setAnalysisModelPointRecordInfoList)
                        {
                            if (item.Id == itemData.LargedataAnalysisConfigId)
                            {
                                item.Expresstion = item.Expresstion.Replace(itemData.ExpressionConfigId, itemData.Point + "->" + itemData.FactorName);
                            }
                        }
                    }
                }

                jC_Largedataanalysisconfigresponse.Data = listResult;
            }
            catch
            {
            }
            return(jC_Largedataanalysisconfigresponse);
        }
Exemple #2
0
 public BasicResponse <List <JC_SetAnalysisModelPointRecordInfo> > GetSetAnalysisModelPointRecordByLargedataAnalysisConfigId(SetAnalysisModelPointRecordByModelIdGetRequest jc_SetAnalysisModelPointRecordByModelIdGetRequest)
 {
     return(setAnalysisModelPointRecordService.GetSetAnalysisModelPointRecordByLargedataAnalysisConfigId(jc_SetAnalysisModelPointRecordByModelIdGetRequest));
 }