From dfc98c4db481b8ce23b7fd5123f98a5b3ef3db05 Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 1 Jun 2022 12:48:35 +0800 Subject: [PATCH] 23232 --- DataVAPI/Controllers/OrderController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DataVAPI/Controllers/OrderController.cs b/DataVAPI/Controllers/OrderController.cs index ca33f27..120c96b 100644 --- a/DataVAPI/Controllers/OrderController.cs +++ b/DataVAPI/Controllers/OrderController.cs @@ -192,6 +192,8 @@ namespace DataVAPI.Controllers int i = 0; string namesy = string.Empty; string devid = string.Empty; + string devname = string.Empty; + int ClientId = item.Key; List aly_data = new List(); if (retdata.ContainsKey(ClientId))//查询店铺下面所有设备集合 @@ -220,6 +222,7 @@ namespace DataVAPI.Controllers #endregion if (i == 0) { devid = p.DeviceID.ToString(); + devname=p.DeviceName.ToString(); namesy = dev != null ? dev.devicename : "空"; i++; } @@ -240,7 +243,8 @@ namespace DataVAPI.Controllers ClientId = item.Value?[0]?.ClientId.ToString(), DeviceList= aly_data, FirstName = namesy, - FirstDeviceID= devid + FirstDeviceID= devid, + FirstDeviceName= devname }; list.Add(_data); }