Browse Source

opt:更改商品分类添加属性值设置排序问题

ingredientmanage
zhaoy 7 months ago
parent
commit
14126b15ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs

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

@@ -41,7 +41,7 @@ namespace BPA.Franchisee.Application.FranchiseeCenter.GoodsServices
})
.Mapper(x =>
{
var list=_db.Queryable<BPA_GoodsAttributeValue>().Where(p=> p.GoodsAttributeId==x.Id).ToList();
var list=_db.Queryable<BPA_GoodsAttributeValue>().Where(p=> p.GoodsAttributeId==x.Id).OrderBy(x=>x.Sort).ToList();
x.AttributeValueList = list;
})
.ToPageList(dto.Current, dto.PageSize, ref total);


Loading…
Cancel
Save