|
|
@@ -62,15 +62,16 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
/// 查询设备列表 |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
public async Task<List<ListSelectQuery>> GetDeviceList() |
|
|
|
public async Task<List<ListSelectDeviceQuery>> GetDeviceList() |
|
|
|
{ |
|
|
|
RefAsync<int> total = 0; |
|
|
|
var data = await _db.Queryable<BPA_DeviceInfo>() |
|
|
|
.Select(a=> new ListSelectQuery |
|
|
|
.Select(a=> new ListSelectDeviceQuery |
|
|
|
{ |
|
|
|
Id = a.Id, |
|
|
|
Name = a.DeviceName, |
|
|
|
AutoKey=a.AutoKey.ToString() |
|
|
|
AutoKey=a.AutoKey.ToString(), |
|
|
|
Vesion=SqlFunc.Subqueryable<BPA_ProductVesion>().Where(x=>x.Id==a.ProductVersionId).First().Vesion, |
|
|
|
}) .ToListAsync(); |
|
|
|
return data; |
|
|
|
} |
|
|
|