From 14126b15ac3e653ef04cc793fbc4b279c6c3b6b2 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Tue, 21 May 2024 17:36:11 +0800 Subject: [PATCH] =?UTF-8?q?opt:=E6=9B=B4=E6=94=B9=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=B7=BB=E5=8A=A0=E5=B1=9E=E6=80=A7=E5=80=BC?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataBase/Services/GoodsAttributeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs index 14d9255..8d08238 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsAttributeService.cs @@ -41,7 +41,7 @@ namespace BPA.Franchisee.Application.FranchiseeCenter.GoodsServices }) .Mapper(x => { - var list=_db.Queryable().Where(p=> p.GoodsAttributeId==x.Id).ToList(); + var list=_db.Queryable().Where(p=> p.GoodsAttributeId==x.Id).OrderBy(x=>x.Sort).ToList(); x.AttributeValueList = list; }) .ToPageList(dto.Current, dto.PageSize, ref total);