public object Do_GetHomePageData(BaseApi baseApi)
        {
            GetHomePageParam getHomePageParam = JsonConvert.DeserializeObject <GetHomePageParam>(baseApi.param.ToString());

            if (getHomePageParam == null)
            {
                throw new ApiException(CodeMessage.InvalidParam, "InvalidParam");
            }

            //HomePageData homePageData = Utils.GetCache<HomePageData>(getHomePageParam);

            //if (homePageData == null)
            //{
            DashboardDao dashboardDao = new DashboardDao();

            string shopId = getHomePageParam.shopId;

            PartSalesHP      partSalesHP    = dashboardDao.HomePageGetPartSalesHP(shopId);
            SalesTrendDataHP salesTrendData = dashboardDao.HomePageGetSalesTrendData(shopId);
            SalesShareDataHP SalesShareData = dashboardDao.HomePageGetSalesShareData(shopId);

            HomePageData homePageData = new HomePageData();

            homePageData.partSales      = partSalesHP;
            homePageData.salesTrendData = salesTrendData;
            homePageData.SalesShareData = SalesShareData;

            //    Utils.SetCache(homePageData, 0, 1, 0);
            //}

            return(homePageData);
        }
        public object Do_GetTradeData(BaseApi baseApi)
        {
            GetTradeParam getTradeParam = JsonConvert.DeserializeObject <GetTradeParam>(baseApi.param.ToString());

            if (getTradeParam == null)
            {
                throw new ApiException(CodeMessage.InvalidParam, "InvalidParam");
            }

            //TradeData tradeData = Utils.GetCache<TradeData>(getTradeParam);

            //if (tradeData == null)
            //{
            DashboardDao dashboardDao = new DashboardDao();

            string shopId = getTradeParam.shopId;

            Shops     shops     = dashboardDao.TradeGetShops();
            PartSales partSales = new PartSales
            {
                partSalesDay = dashboardDao.TradeGetPartSalesDay(shopId),
                monthGroups  = dashboardDao.TradeGetMonthGroups(shopId)
            };
            SalesTrendDataHP salesTrendData = dashboardDao.TradeGetSalesTrendData(shopId);

            TradeData tradeData = new TradeData();

            tradeData.shops          = shops;
            tradeData.partSales      = partSales;
            tradeData.salesTrendData = salesTrendData;

            //    Utils.SetCache(tradeData, 0, 1, 0);
            //}

            return(tradeData);
        }