/// <summary>
        /// 获取团购商品信息
        /// </summary>
        /// <param name="filter"></param>
        /// <param name="activityStatus"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public List <GroupBuyingProductGroupConfigEntity> SelectGroupBuyingV2Config(GroupBuyingProductGroupConfigEntity filter, string activityStatus, int pageIndex, int pageSize)
        {
            List <GroupBuyingProductGroupConfigEntity> result = new List <GroupBuyingProductGroupConfigEntity>();

            try
            {
                List <GroupBuyingStockModel> stockInfo = new List <GroupBuyingStockModel>();
                dbScopeReadManager.Execute(conn =>
                {
                    if (!string.IsNullOrEmpty(filter.PID) || !string.IsNullOrEmpty(filter.ProductName))
                    {
                        var filterData = DalGroupBuyingProductGroupConfig.GetGroupBuyingProductConfig(conn,
                                                                                                      filter.PID, filter.ProductName);
                        if (filterData != null && filterData.Any())
                        {
                            result = DalGroupBuyingProductGroupConfig.GetGroupBuyingV2Config(conn, filter,
                                                                                             activityStatus, filterData.Select(x => x.ProductGroupId).ToList(), pageIndex, pageSize);
                        }
                    }
                    else
                    {
                        result = DalGroupBuyingProductGroupConfig.GetGroupBuyingV2Config(conn, filter,
                                                                                         activityStatus, new List <string> {
                            filter.ProductGroupId
                        }, pageIndex, pageSize);
                    }
                    if (result != null && result.Any())
                    {
                        result.ForEach(x =>
                        {
                            x.GroupProductDetails = DalGroupBuyingProductGroupConfig.GetGroupBuyingV2ProductConfigByGroupId(conn, new List <string> {
                                x.ProductGroupId
                            });
                        });
                    }
                });
            }
            catch (Exception ex)
            {
                logger.Error(ex);
            }
            return(result);
        }