Browse Source

增加商品地址的参数

ingredientmanage
zhaoy 7 months ago
parent
commit
fa9c5640d8
2 changed files with 2 additions and 3 deletions
  1. +1
    -0
      BPA.SAAS.Manage.Application/DataBase/Dtos/GoodsResultDto.cs
  2. +1
    -3
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs

+ 1
- 0
BPA.SAAS.Manage.Application/DataBase/Dtos/GoodsResultDto.cs View File

@@ -48,6 +48,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Dtos


public string GoodsName { get; set; } public string GoodsName { get; set; }


public string ImgUrl { get; set; }
public List<GoodsTechnologyActionResultDto> GoodsTechnologyActionList { get; set; } public List<GoodsTechnologyActionResultDto> GoodsTechnologyActionList { get; set; }
} }




+ 1
- 3
BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs View File

@@ -126,10 +126,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
public async Task<object> GetGoodsListByIds(List<string> GoodsIds) public async Task<object> GetGoodsListByIds(List<string> GoodsIds)
{ {




var result = new List<GoodsTypeResultDto>(); var result = new List<GoodsTypeResultDto>();

//商品信息 //商品信息
var goodsList=await _db.Queryable<BPA_GoodsInfo>().Where(x=> GoodsIds.Contains(x.Id)).ToListAsync(); var goodsList=await _db.Queryable<BPA_GoodsInfo>().Where(x=> GoodsIds.Contains(x.Id)).ToListAsync();


@@ -195,6 +192,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
{ {
GoodsId=x.Id, GoodsId=x.Id,
GoodsName=x.Name, GoodsName=x.Name,
ImgUrl=x.ImgUrl,
}) })
.ToList(); .ToList();




Loading…
Cancel
Save