/// <summary> /// 根据分类Id获取该分类下的app列表 /// </summary> /// <param name="search"></param> public List <AppSetAppDTO> GetCategoryAppListExt(AppSetSearchDTO search) { if (search == null) { return(new List <Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO>()); } List <Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO> result; Jinher.AMP.ZPH.Deploy.CustomDTO.AppSetSearchDTO query = new ZPH.Deploy.CustomDTO.AppSetSearchDTO() { CategoryId = search.CategoryId }; try { result = new List <Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO>(); List <Jinher.AMP.ZPH.Deploy.CustomDTO.AppSetAppDTO> comListReuslt = Jinher.AMP.BTP.TPS.ZPHSV.Instance.GetCategoryAppList(query); //类转换一下 if (comListReuslt != null) { foreach (Jinher.AMP.ZPH.Deploy.CustomDTO.AppSetAppDTO tmpAppSetAppZPH in comListReuslt) { if (tmpAppSetAppZPH != null) { Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO tmp = new Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO() { AppId = tmpAppSetAppZPH.AppId, AppName = tmpAppSetAppZPH.AppName, AppCreateOn = tmpAppSetAppZPH.AppCreateOn, AppIcon = tmpAppSetAppZPH.AppIcon, IsAddToAppSet = tmpAppSetAppZPH.IsAddToAppSet }; result.Add(tmp); } } } return(result); } catch (Exception ex) { LogHelper.Error(string.Format("根据分类Id获取该分类下的app列表接口异常。search:{0}", JsonHelper.JsonSerializer(search)), ex); return(new List <Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppDTO>()); } }
/// <summary> /// 厂家直营app查询 /// </summary> /// <param name="search"></param> /// <returns></returns> public Jinher.AMP.BTP.Deploy.CustomDTO.AppSetAppGridDTO GetAppSet(Jinher.AMP.BTP.Deploy.CustomDTO.AppSetSearchDTO search) { base.Do(); return(this.Command.GetAppSet(search)); }