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