diff --git a/BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs b/BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs index eb3202e..60ff0cb 100644 --- a/BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs +++ b/BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs @@ -14,7 +14,7 @@ namespace BPA.SAAS.Manage.Application.Device.Interface { Task GetProductPage(ProductQueryInputDto inputDto); Task> GetProductList(); - Task GetDevice(string productId); + Task GetProduct(string productId); Task AddProduct(ProductBaseDto inputDto); Task DeProduct(List inputList); Task UpdateProduct(ProductBaseDto inputDto); diff --git a/BPA.SAAS.Manage.Application/Device/ProductServices.cs b/BPA.SAAS.Manage.Application/Device/ProductServices.cs index e9fa0b9..19b3941 100644 --- a/BPA.SAAS.Manage.Application/Device/ProductServices.cs +++ b/BPA.SAAS.Manage.Application/Device/ProductServices.cs @@ -44,10 +44,10 @@ namespace BPA.SAAS.Manage.Application.Device /// /// /// - [HttpGet("/api/product/getdevice")] - public async Task GetDevice(string productId) + [HttpGet("/api/product/getproduct")] + public async Task GetProduct(string productId) { - return await _productService.GetDevice(productId); + return await _productService.GetProduct(productId); } /// /// 添加 diff --git a/BPA.SAAS.Manage.Application/Device/Services/ProductService.cs b/BPA.SAAS.Manage.Application/Device/Services/ProductService.cs index 5849608..4712c74 100644 --- a/BPA.SAAS.Manage.Application/Device/Services/ProductService.cs +++ b/BPA.SAAS.Manage.Application/Device/Services/ProductService.cs @@ -53,6 +53,11 @@ namespace BPA.SAAS.Manage.Application.Device.Services var data = await _db.Queryable().Where(x=>x.Status==0) .ToListAsync(); return data; } + public async Task GetProduct(string productId) + { + var data = await _db.Queryable().Where(x => x.Id == productId).FirstAsync(); + return data; + } /// /// 新增 ///