From 9c66145f735c327e91d819bb564bafa93949cd96 Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 14 Sep 2025 02:53:29 +0800 Subject: [PATCH] 231 --- CoreCms.Net.Web.WebApi/Controllers/SQController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 23c0a5c..cd351ea 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -426,6 +426,8 @@ ISQRoomUnavailableTimesServices sQRoomUnavailableTimesServices // 4. 可预约房间 = 所有可用房间 - 不可用房间 - 已预约房间 var availableRooms = allRooms .Where(r => r.status == true && !unavailableRoomIds.Contains(r.id) && !reservedRoomIds.Contains(r.id)) + .OrderBy(r => r.name) + .Select(it => new { it.name, it.id }) .ToList(); return new WebApiDto()