xxe 1年前
父节点
当前提交
be638bd8a5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      HKCardOUT/Bootstrapper.cs
  2. +1
    -1
      HKCardOUT/Logic/Service/HKCore.cs

+ 1
- 1
HKCardOUT/Bootstrapper.cs 查看文件

@@ -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 查看文件

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



正在加载...
取消
保存