Browse Source

日志记录

master
xxe 2 years ago
parent
commit
5815461051
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      HKCardOUT/Logic/Service/HKCore.cs

+ 1
- 0
HKCardOUT/Logic/Service/HKCore.cs View File

@@ -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());
}


Loading…
Cancel
Save