Exemple #1
0
        /// <summary>
        /// 根据模型名称模糊查询模型列表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public LargedataAnalysisConfigBusinessModel GetLargeDataAnalysisConfigListByName(string name, int pageIndex = 1, int pageSize = 0)
        {
            LargedataAnalysisConfigBusinessModel model = new LargedataAnalysisConfigBusinessModel();
            BasicResponse <List <JC_LargedataAnalysisConfigInfo> > analysisModelResponse = largedataAnalysisConfigService.GetLargeDataAnalysisConfigListByName(
                new LargedataAnalysisConfigGetListByNameRequest()
            {
                Name      = name,
                PagerInfo = new PagerInfo()
                {
                    PageSize  = pageSize,
                    PageIndex = pageIndex
                }
            });

            model.pagerInfo = analysisModelResponse.PagerInfo;
            if (analysisModelResponse.Data != null && analysisModelResponse.Data.Count > 0)
            {
                model.LargedataAnalysisConfigInfoList = analysisModelResponse.Data;
            }
            else
            {
                model.LargedataAnalysisConfigInfoList = new List <JC_LargedataAnalysisConfigInfo>();
            }

            return(model);
        }
Exemple #2
0
 public BasicResponse <List <JC_LargedataAnalysisConfigInfo> > GetLargeDataAnalysisConfigListByName(LargedataAnalysisConfigGetListByNameRequest jc_LargedataAnalysisConfigRequest)
 {
     return(_largedataAnalysisConfigService.GetLargeDataAnalysisConfigListByName(jc_LargedataAnalysisConfigRequest));
 }