From 0f61d746e576ac0d56a1f9094a5ee999ea37b05d Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 6 Mar 2025 10:47:54 +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/Document/DTO/SysFileTypeViewModel.cs | 5 +++++ .../Service/Document/TrialFileTypeService.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Document/DTO/SysFileTypeViewModel.cs b/IRaCIS.Core.Application/Service/Document/DTO/SysFileTypeViewModel.cs index 52e8d5315..f3f6aa3b3 100644 --- a/IRaCIS.Core.Application/Service/Document/DTO/SysFileTypeViewModel.cs +++ b/IRaCIS.Core.Application/Service/Document/DTO/SysFileTypeViewModel.cs @@ -33,6 +33,11 @@ public class SysFileTypeAddOrEdit public string NameCN { get; set; } + /// + /// 显示顺序 + /// + public int ShowOrder { get; set; } + public SubIdentification SubIdentificationEnum { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs index 84d865d2f..32f568111 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialFileTypeService.cs @@ -153,7 +153,7 @@ public class TrialFileTypeService(IRepository _trialFileTypeRepos result.Add(new TrialFileTypeData() { ArchiveTypeEnum = type, - TrialFileTypeList = trialFileTypeList.Where(x => x.ArchiveTypeEnum == type).ToList() + TrialFileTypeList = trialFileTypeList.Where(x => x.ArchiveTypeEnum == type).OrderBy(x=>x.ShowOrder).ToList() }); }