From e0b7724bebf8962e3acfd625b80be4b58aebb0b3 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Mon, 26 Feb 2024 17:24:13 +0800 Subject: [PATCH] z --- BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs | 1 + BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs index b8669e8..d661468 100644 --- a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs +++ b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs @@ -78,6 +78,7 @@ namespace BPA.SAAS.Manage.Application.Device.Services { x.Vesion = _db.Queryable().Where(s => s.Id == x.ProductVersionId).First()?.Vesion; x.ProductNumber = _db.Queryable().Where(s => s.Id == x.ProductVersionId).First()?.ProductNumber; + x.ProductName = _db.Queryable().Where(s => s.Id == x.ProductId).First()?.Name; x.PrductKey = _db.Queryable().Where(s => s.Id == x.ProductId).First()?.Key; }); return data; diff --git a/BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs b/BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs index 42805c3..5f90a56 100644 --- a/BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs +++ b/BPA.SAAS.Manage.Comm/Model/ListSelectQuery.cs @@ -22,5 +22,7 @@ namespace BPA.SAAS.Manage.Comm.Model public string Vesion { get; set; } public string PrductKey { get; set; } public int? ProductNumber { get; set; } + public string ProductName { get; set; } + } }