From 4bd7a2a8c10ecedaf09504b7df9a90a0b064207d Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Thu, 11 Jul 2024 10:00:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=8E=B7=E5=8F=96=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=89=A9=E6=96=99=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B7=A5=E8=89=BA=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E8=AE=BE=E5=A4=8720240711?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Goods/Services/GoodsServices.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs b/BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs index 8e37c61..a95b3a3 100644 --- a/BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs +++ b/BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs @@ -31,9 +31,14 @@ namespace BPA.SAAS.KitChenManage.Application.AExternalPlatform1.Service.Goods.Se public async Task GetDeviceGoods(string deviceId) { var goodsId = await _db.Queryable() - .Where(x => x.AutoKey.ToString()==deviceId) + .Where(x => x.AutoKey.ToString() == deviceId) .Select(x => x.GoodsId) .ToListAsync(); + var device = await _db.Queryable().FirstAsync(t => t.AutoKey.ToString() == deviceId); + if (device != null) + { + goodsId.Insert(0, device.DeviceId); + } var data = await GetDeviceGoodspost(goodsId, deviceId); return data; }