示例#1
0
 /// <summary>
 /// 搜索商城商品
 /// </summary>
 /// <param name="pageSize">每页数</param>
 /// <param name="pageNumber">当前页数</param>
 /// <param name="word">搜索词</param>
 /// <param name="cateId">分类id</param>
 /// <param name="brandId">品牌id</param>
 /// <param name="filterPrice">筛选价格</param>
 /// <param name="attrValueIdList">属性值id列表</param>
 /// <param name="onlyStock">是否只显示有货</param>
 /// <param name="sortColumn">排序列</param>
 /// <param name="sortDirection">排序方向</param>
 /// <param name="categoryInfo">分类信息</param>
 /// <param name="catePriceRangeList">分类价格范围列表</param>
 /// <param name="cateAAndVList">分类筛选属性及其值列表</param>
 /// <param name="categoryList">分类列表</param>
 /// <param name="brandInfo">品牌信息</param>
 /// <param name="brandList">品牌列表</param>
 /// <param name="totalCount">商品总数量</param>
 /// <param name="productList">商品列表</param>
 public static void SearchProducts(int pageSize, int pageNumber, string word, int cateId, int brandId, int filterPrice, List <int> attrValueIdList, int onlyStock, int sortColumn, int sortDirection, ref CategoryInfo categoryInfo, ref string[] catePriceRangeList, ref List <KeyValuePair <AttributeInfo, List <AttributeValueInfo> > > cateAAndVList, ref List <CategoryInfo> categoryList, ref BrandInfo brandInfo, ref List <BrandInfo> brandList, ref int totalCount, ref List <PartProductInfo> productList)
 {
     _isearchstrategy.SearchProducts(pageSize, pageNumber, word, cateId, brandId, filterPrice, attrValueIdList, onlyStock, sortColumn, sortDirection, ref categoryInfo, ref catePriceRangeList, ref cateAAndVList, ref categoryList, ref brandInfo, ref brandList, ref totalCount, ref productList);
 }
示例#2
0
        private static ISearchStrategy _isearchstrategy = BSPSearch.Instance;//搜索策略

        /// <summary>
        /// 搜索商品
        /// </summary>
        /// <param name="pageSize">每页数</param>
        /// <param name="pageNumber">当前页数</param>
        /// <param name="keyword">关键词</param>
        /// <param name="cateId">分类id</param>
        /// <param name="brandId">品牌id</param>
        /// <param name="filterPrice">筛选价格</param>
        /// <param name="catePriceRangeList">分类价格范围列表</param>
        /// <param name="attrValueIdList">属性值id列表</param>
        /// <param name="onlyStock">是否只显示有货</param>
        /// <param name="sortColumn">排序列</param>
        /// <param name="sortDirection">排序方向</param>
        /// <returns></returns>
        public static List <PartProductInfo> SearchProducts(int pageSize, int pageNumber, string keyword, int cateId, int brandId, int filterPrice, string[] catePriceRangeList, List <int> attrValueIdList, int onlyStock, int sortColumn, int sortDirection)
        {
            return(_isearchstrategy.SearchProducts(pageSize, pageNumber, keyword, cateId, brandId, filterPrice, catePriceRangeList, attrValueIdList, onlyStock, sortColumn, sortDirection));
        }