Browse Source

23232

master
fyf 2 years ago
parent
commit
dfc98c4db4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      DataVAPI/Controllers/OrderController.cs

+ 5
- 1
DataVAPI/Controllers/OrderController.cs View File

@@ -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<object> aly_data = new List<object>();
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);
}


Loading…
Cancel
Save