|
|
@@ -299,7 +299,7 @@ namespace HKCardOUT.Logic.Service |
|
|
|
public Dictionary<string, int> GetDayData() |
|
|
|
{ |
|
|
|
var today = DateTime.Parse(DataBus.TodayTime.ToString("yyyy-MM-dd 00:00:00")); |
|
|
|
var count = DbContext.Context.Queryable<SaleLog>().Select(t => t.Location).ToList(); |
|
|
|
var count = DbContext.Context.Queryable<SaleLog>().Where(t => t.CreateTime >= today).Select(t => t.Location).ToList(); |
|
|
|
return count.GroupBy(t => t).ToDictionary(t => t.Key, t => t.Count()); |
|
|
|
} |
|
|
|
|
|
|
|