From 6e1306ab578ed1ad79fc33b0bb7e496b897bf4a4 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 20 一月 2025 10:48:03 +0800 Subject: [PATCH] 冲突处理 --- Service/HStation.Service.Assets.Core/05-service/02-Adapting/AdaptingManage.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Service/HStation.Service.Assets.Core/05-service/02-Adapting/AdaptingManage.cs b/Service/HStation.Service.Assets.Core/05-service/02-Adapting/AdaptingManage.cs index bcdad7b..ead92e0 100644 --- a/Service/HStation.Service.Assets.Core/05-service/02-Adapting/AdaptingManage.cs +++ b/Service/HStation.Service.Assets.Core/05-service/02-Adapting/AdaptingManage.cs @@ -137,6 +137,19 @@ return all.Where(x => Ids.Contains(x.ID)).ToList(); } + /// <summary> + /// 鑾峰彇鏈�澶ф帓搴忕爜 + /// </summary> + public int GetMaxSortCode() + { + var all = GetAll(); + if (all == null || all.Count < 1) + { + return 0; + } + return all.Max(x => x.SortCode); + } + #endregion Query #region Insert -- Gitblit v1.9.3