Browse Source

Merge branch 'master' into kitchenmanage

ingredientmanage
zhaoy 10 months ago
parent
commit
2017f0c11b
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

@@ -80,11 +80,13 @@ namespace BPA.SAAS.Manage.Application.Device.Services
AutoKey=a.AutoKey.ToString(), AutoKey=a.AutoKey.ToString(),
ProductVersionId=a.ProductVersionId, ProductVersionId=a.ProductVersionId,
ProductId=a.ProductId, ProductId=a.ProductId,
}) .ToListAsync(); }) .ToListAsync();
data.ForEach(x => data.ForEach(x =>
{ {
x.Vesion = _db.Queryable<BPA_ProductVesion>().Where(s => s.Id == x.ProductVersionId).First()?.Vesion; 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.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.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; 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 string PrductKey { get; set; }
public int? ProductNumber { get; set; } public int? ProductNumber { get; set; }
public string ProductName { get; set; } public string ProductName { get; set; }
public string ProductUrl { get; set; }

} }
} }

Loading…
Cancel
Save