xxe 1 year ago
parent
commit
61f49a6b29
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      HKCardOUT/Helper/BigScreen/DataCenter.cs

+ 11
- 5
HKCardOUT/Helper/BigScreen/DataCenter.cs View File

@@ -198,11 +198,17 @@ namespace Helper.BigScreen
}
sender.SplitMeals_CookType_6 = res;



sender.StatsCount = new List<StatsModel> {
new StatsModel { }
};
GateId = DataBus.StoreInfo.Devices.Select(t => t.GateId).FirstOrDefault();
var Foods = DataBus.Menu.GateFood.Where(t => t.GateId == GateId)?.Select(t => t.Foods)?.FirstOrDefault();
sender.StatsCount = new List<StatsModel>();
foreach (var item in Foods)
{
sender.StatsCount.Add(new StatsModel
{
Name = item,
Count = model.Values.Sum()
});
}
MQTTCon.Send(sender);
Thread.Sleep(10);
}, $"屏幕刷卡信息", true);


Loading…
Cancel
Save