diff --git a/HKCardOUT/Bootstrapper.cs b/HKCardOUT/Bootstrapper.cs index 68f6d52..d42386b 100644 --- a/HKCardOUT/Bootstrapper.cs +++ b/HKCardOUT/Bootstrapper.cs @@ -107,7 +107,7 @@ namespace HKCardOUT DataBus.saleLogDtos = new System.Collections.Concurrent.ConcurrentQueue(); RemoteService.GetFoodMenus(); RemoteService.GetRangeCtrl(); - //MQTTCon.Connection(); + MQTTCon.Connection(); base.Configure(); } diff --git a/HKCardOUT/Logic/Service/HKCore.cs b/HKCardOUT/Logic/Service/HKCore.cs index 8d7c042..e574eb1 100644 --- a/HKCardOUT/Logic/Service/HKCore.cs +++ b/HKCardOUT/Logic/Service/HKCore.cs @@ -299,7 +299,7 @@ namespace HKCardOUT.Logic.Service public Dictionary GetDayData() { var today = DateTime.Parse(DataBus.TodayTime.ToString("yyyy-MM-dd 00:00:00")); - var count = DbContext.Context.Queryable().Select(t => t.Location).ToList(); + var count = DbContext.Context.Queryable().Where(t => t.CreateTime >= today).Select(t => t.Location).ToList(); return count.GroupBy(t => t).ToDictionary(t => t.Key, t => t.Count()); }