コード例 #1
0
        public MyProfitView myProfit(int userId)
        {
            MyProfitView view = new MyProfitView();

            view.today     = RebatesBLL.Instance.countTodayFinalMoney(userId);
            view.yesterday = RebateStatsDailyBLL.Instance.getYesterday(userId);
            view.week      = RebateStatsDailyBLL.Instance.getWeek(userId);
            view.lastWeek  = RebateStatsDailyBLL.Instance.getLastWeek(userId);
            view.month     = RebateStatsMonthlyBLL.Instance.getMonth(userId);
            view.lastMonth = RebateStatsMonthlyBLL.Instance.getLastMonth(userId);
            return(view);
        }
コード例 #2
0
        public ActionResult myProfit(HQRequestHeader header)
        {
            MyProfitView profit = UsersBLL.Instance.myProfit(header.userId);

            return(Json(ApiResult.ResultWith(HQEnums.ResultOptionType.OK, profit)));
        }