/// <summary> /// 获取状态报告 /// </summary> /// <param name="account"></param> /// <param name="beginTime"></param> /// <param name="endTime"></param> /// <returns></returns> public RPCResult <List <ReportStatistics> > GetStatisticsReportByAccount(string accountID, DateTime beginTime, DateTime endTime) { var r = ReportStatisticsDB.GetStatisticsByAccount(accountID, beginTime, endTime); return(new RPCResult <List <ReportStatistics> >(true, r, "")); }
public void GetStatisticsByAccountTest() { var r = ReportStatisticsDB.GetStatisticsByAccount("account", new DateTime(2016, 4, 28), DateTime.Now); Assert.IsTrue(r.Count > 0); }