zhaoy 8 months ago
parent
commit
a38479fba6
2 changed files with 4 additions and 1 deletions
  1. +2
    -0
      BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs
  2. +2
    -1
      BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs

+ 2
- 0
BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs View File

@@ -78,11 +78,13 @@ namespace BPA.SAAS.Manage.Application.Device.Services
AutoKey=a.AutoKey.ToString(),
ProductVersionId=a.ProductVersionId,
ProductId=a.ProductId,
}) .ToListAsync();
data.ForEach(x =>
{
x.Vesion = _db.Queryable<BPA_ProductVesion>().Where(s => s.Id == x.ProductVersionId).First()?.Vesion;
x.ProductNumber = _db.Queryable<BPA_ProductVesion>().Where(s => s.Id == x.ProductVersionId).First()?.ProductNumber;
x.ProductUrl = _db.Queryable<BPA_ProductVesion>().Where(s => s.Id == x.ProductVersionId).First()?.ProductUrl;
x.ProductName = _db.Queryable<BPA_Product>().Where(s => s.Id == x.ProductId).First()?.Name;
x.PrductKey = _db.Queryable<BPA_Product>().Where(s => s.Id == x.ProductId).First()?.Key;
});


+ 2
- 1
BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs View File

@@ -23,6 +23,7 @@ namespace BPA.SAAS.Manage.Comm.Model
public string PrductKey { get; set; }
public int? ProductNumber { get; set; }
public string ProductName { get; set; }
public string ProductUrl { get; set; }

}
}

Loading…
Cancel
Save