|
|
@@ -460,7 +460,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services |
|
|
|
GoodsUintName = SqlFunc.Subqueryable<BPA_GoodsUint>().Where(s => s.Id == a.GoodsUintId && s.IsDeleted == 0).Select(s => s.Name), |
|
|
|
//GoodsAttributeList = new List<GoodsAttributeList>() |
|
|
|
}).FirstAsync(); |
|
|
|
if (!res.IsAttrubute) |
|
|
|
if (res!=null&&!res.IsAttrubute) |
|
|
|
{ |
|
|
|
res.GoodsAttributeList = await _goodsAttributeService.GetByNameAttribute("默认属性"); |
|
|
|
} |
|
|
@@ -477,7 +477,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services |
|
|
|
/// </summary> |
|
|
|
/// <param name="ids"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public async Task<List<GoodsInfoBaseView>> GetGoodsList(List<string> ids) |
|
|
|
public async Task<List<GoodsInfoBaseView>> GetGoodsListByIds(List<string> ids) |
|
|
|
{ |
|
|
|
var res = await _db.Queryable<BPA_GoodsInfo>() |
|
|
|
.Where((a) => a.IsDeleted == 0 && ids.Contains(a.Id)) |
|
|
|