From 988ffcd5af357a6850ee2813183b1ca32ac1b5b3 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 29 Aug 2022 14:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/ReadingQuestionService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs index 7e369804a..ec0a4a01e 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs @@ -194,7 +194,7 @@ namespace IRaCIS.Application.Services .WhereIf(inDto.TableQuestionType!=null,x=>x.TableQuestionType ==inDto.TableQuestionType!) .Where(x=>x.ReadingQuestionId==inDto.ReadingQuestionId).ProjectTo(_mapper.ConfigurationProvider); - var result=await readingTableQuestionSystemQueryable.ToListAsync(); + var result=await readingTableQuestionSystemQueryable.OrderBy(x=>x.ShowOrder).ToListAsync(); return result; } @@ -213,7 +213,7 @@ namespace IRaCIS.Application.Services .WhereIf(inDto.TableQuestionType != null, x => x.TableQuestionType == inDto.TableQuestionType!) .Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId).ProjectTo(_mapper.ConfigurationProvider); - var result = await readingTableQuestionSystemQueryable.ToListAsync(); + var result = await readingTableQuestionSystemQueryable.OrderBy(x=>x.ShowOrder).ToListAsync(); return result; }