瀏覽代碼

Merge branch 'master' into storemanagement

storemanagement
zhaoy 9 月之前
父節點
當前提交
262c466ad0
共有 3 個檔案被更改,包括 9 行新增4 行删除
  1. +1
    -1
      BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs
  2. +3
    -3
      BPA.SAAS.Manage.Application/Device/ProductServices.cs
  3. +5
    -0
      BPA.SAAS.Manage.Application/Device/Services/ProductService.cs

+ 1
- 1
BPA.SAAS.Manage.Application/Device/Interface/IProductService.cs 查看文件

@@ -14,7 +14,7 @@ namespace BPA.SAAS.Manage.Application.Device.Interface
{
Task<PageUtil> GetProductPage(ProductQueryInputDto inputDto);
Task<List<BPA_Product>> GetProductList();
Task<BPA_DeviceInfo> GetDevice(string productId);
Task<BPA_Product> GetProduct(string productId);
Task<bool> AddProduct(ProductBaseDto inputDto);
Task<bool> DeProduct(List<string> inputList);
Task<bool> UpdateProduct(ProductBaseDto inputDto);


+ 3
- 3
BPA.SAAS.Manage.Application/Device/ProductServices.cs 查看文件

@@ -44,10 +44,10 @@ namespace BPA.SAAS.Manage.Application.Device
/// </summary>
/// <param name="productId"></param>
/// <returns></returns>
[HttpGet("/api/product/getdevice")]
public async Task<BPA_DeviceInfo> GetDevice(string productId)
[HttpGet("/api/product/getproduct")]
public async Task<BPA_Product> GetProduct(string productId)
{
return await _productService.GetDevice(productId);
return await _productService.GetProduct(productId);
}
/// <summary>
/// 添加


+ 5
- 0
BPA.SAAS.Manage.Application/Device/Services/ProductService.cs 查看文件

@@ -53,6 +53,11 @@ namespace BPA.SAAS.Manage.Application.Device.Services
var data = await _db.Queryable<BPA_Product>().Where(x=>x.Status==0) .ToListAsync();
return data;
}
public async Task<BPA_Product> GetProduct(string productId)
{
var data = await _db.Queryable<BPA_Product>().Where(x => x.Id == productId).FirstAsync();
return data;
}
/// <summary>
/// 新增
/// </summary>


Loading…
取消
儲存