From b8510ca5d1e56ef78cd27c45b6bd65a2c13f6b27 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期一, 17 三月 2025 15:12:34 +0800 Subject: [PATCH] 代码优化 --- 项目代码/WIDESEAWCS_Server 正式/SerialPortService/ArticleInfomServer.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/SerialPortService/ArticleInfomServer.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/SerialPortService/ArticleInfomServer.cs" index 0062c5e..4f189e5 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/SerialPortService/ArticleInfomServer.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/SerialPortService/ArticleInfomServer.cs" @@ -4,6 +4,7 @@ using System.Text; using System.Threading.Tasks; using WIDESEA_ISerialPortRepository; +using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseServices; using WIDESEAWCS_ITaskInfoService; using WIDESEAWCS_Model.Models; @@ -16,5 +17,14 @@ { } + public override PageGridData<Dt_ArticleInfom> GetPageData(PageDataOptions options) + { + OrderByParameters = new Dictionary<string, SqlSugar.OrderByType> { + { nameof(Dt_ArticleInfom.ID),SqlSugar.OrderByType.Asc }, + }; + return base.GetPageData(options); + } + + } } -- Gitblit v1.9.3