diff --git a/HKCardOUT/Helper/BigScreen/DataCenter.cs b/HKCardOUT/Helper/BigScreen/DataCenter.cs index 79532b1..c3d52a9 100644 --- a/HKCardOUT/Helper/BigScreen/DataCenter.cs +++ b/HKCardOUT/Helper/BigScreen/DataCenter.cs @@ -198,11 +198,17 @@ namespace Helper.BigScreen } sender.SplitMeals_CookType_6 = res; - - - sender.StatsCount = new List { - 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(); + foreach (var item in Foods) + { + sender.StatsCount.Add(new StatsModel + { + Name = item, + Count = model.Values.Sum() + }); + } MQTTCon.Send(sender); Thread.Sleep(10); }, $"屏幕刷卡信息", true);