This commit is contained in:
zpc 2025-09-14 18:45:42 +08:00
parent 56f6139bd1
commit 5ff938472a

View File

@ -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;
/// <summary>
@ -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()