public List <OrderProductOccurInfo> GetShareDetailList(ref GridPager pager)
        {
            var queryData = ShareDetailRepository.GetShareDetailList();

            queryData = LinqHelper.DataSorting(queryData, pager.Sort, pager.Order);

            return(CreateModelList(ref pager, ref queryData));
        }
        public List <OrderProductOccurInfo> GetShareDetailListByQuery(string queryStr, ref GridPager pager)
        {
            var queryData = ShareDetailRepository.GetShareDetailList();

            // *用户名* / 分享平台 / 分享途径 / 下单类型
            string[] queryArr          = queryStr.Split(new char[] { '/' });
            string   startTime         = queryArr[0];
            DateTime start             = DateTime.Parse(startTime);
            string   endTime           = queryArr[1];
            DateTime end               = DateTime.Parse(endTime);
            string   queryByUser       = queryArr[2];
            string   queryByPlatform   = queryArr[3];
            int      platform          = Convert.ToInt32(Enum.Parse(typeof(EnumUtility.SharedPlatform), queryByPlatform));
            string   queryByClientType = queryArr[4];
            int      clientType        = Convert.ToInt32(Enum.Parse(typeof(EnumUtility.SharedClientType), queryByClientType));
            string   queryByOrderType  = queryArr[5];

            if (!string.IsNullOrEmpty(startTime))
            {
                queryData = queryData.Where(d => d.OrderOccurTime >= start);
            }
            if (!string.IsNullOrEmpty(endTime))
            {
                queryData = queryData.Where(d => d.OrderOccurTime <= end);
            }
            if (!string.IsNullOrEmpty(queryByUser) && !queryByUser.Equals("输入*用户名*关键字"))
            {
                var user = GetUserByName(queryByUser);
                queryData = queryData.Where(d => d.SharedUserId == user.UserId);
            }
            if (!string.IsNullOrEmpty(queryByPlatform) && !queryByPlatform.Equals("-1"))
            {
                queryData = queryData.Where(d => d.PlatformId == platform);
            }
            if (!string.IsNullOrEmpty(queryByClientType) && !queryByClientType.Equals("-1"))
            {
                queryData = queryData.Where(d => d.SharedClientId == clientType);
            }
            if (!string.IsNullOrEmpty(queryByOrderType) && !queryByOrderType.Equals("-1"))
            {
                queryData = queryData.Where(d => d.ProductSite == queryByOrderType);
            }

            queryData = LinqHelper.DataSorting(queryData, pager.Sort, pager.Order);

            return(CreateModelList(ref pager, ref queryData));
        }