xxe 1 year ago
parent
commit
be638bd8a5
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      HKCardOUT/Bootstrapper.cs
  2. +1
    -1
      HKCardOUT/Logic/Service/HKCore.cs

+ 1
- 1
HKCardOUT/Bootstrapper.cs View File

@@ -107,7 +107,7 @@ namespace HKCardOUT
DataBus.saleLogDtos = new System.Collections.Concurrent.ConcurrentQueue<DTO.SaleLogDto>();
RemoteService.GetFoodMenus();
RemoteService.GetRangeCtrl();
//MQTTCon.Connection();
MQTTCon.Connection();
base.Configure();
}



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

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



Loading…
Cancel
Save