diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 54b846d..f79bb8b 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -27,6 +27,7 @@ using System.Threading.Tasks; using CoreCms.Net.Services.SQ; using CoreCms.Net.Utility.Extensions; using ToolGood.Words.internals; +using NPOI.SS.Formula.PTG; namespace CoreCms.Net.Web.WebApi.Controllers; /// @@ -435,8 +436,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 }) + .OrderBy(r => r.name) + .Select(it => new { name = it.name + $" {it.price_per_hour}/小时", it.id, it.capacity }) .ToList(); return new WebApiDto()