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()