public string GetShopSummarize(int id) { T_AccountSummarize.Summarize summarize = ShopDetails.GetAccountAllSummarize(id); var orders = ShopDetails.GetAccountOrder(id); //订单笔数和金额实时计算,不从每日店铺信息汇总表获取,保证数据的及时性 if (orders == null) { return(CommonLib.Helper.JsonSerializeObject(summarize)); } summarize.orderNum = orders.DataList.Count; summarize.orderMoney = Convert.ToDecimal(orders.SumInfo.Profit); return(CommonLib.Helper.JsonSerializeObject(summarize)); }
public string GetOrder(int id) { var list = ShopDetails.GetAccountOrder(id); return(CommonLib.Helper.JsonSerializeObject(list, "yyyy-MM-dd HH:mm:ss")); }