/// <summary> /// 根据模板Id获取模板实体 /// </summary> /// <param name="templateId">模板Id</param> /// <returns></returns> public DevExpressTemplateViewModel GetExpressTemplate(string templateId) { var cc = new ConditionCollection() { new Condition("template_id", templateId) }; var expressTemplate = GetRepository <McpTemplateInfo>().GetModel(cc); return(ModelConvertHelper.ToConvertModel <DevExpressTemplateViewModel>(expressTemplate)); }
/// <summary> /// 根据应用ID获取应用明细 /// </summary> /// <param name="appId">应用ID</param> /// <returns>应用数据模型</returns> public DevApplyViewModel GetApplyViewModel(string appId) { var cc = new ConditionCollection { new Condition("app_id", appId) }; var appInfo = this.GetRepository <McpApplicationInfo>().GetModel(cc); var viewModel = ModelConvertHelper.ToConvertModel <DevApplyViewModel>(appInfo); return(viewModel); }