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.Services.SQ;
using CoreCms.Net.Utility.Extensions; using CoreCms.Net.Utility.Extensions;
using ToolGood.Words.internals; using ToolGood.Words.internals;
using NPOI.SS.Formula.PTG;
namespace CoreCms.Net.Web.WebApi.Controllers; namespace CoreCms.Net.Web.WebApi.Controllers;
/// <summary> /// <summary>
@ -436,7 +437,7 @@ ISQRoomUnavailableTimesServices sQRoomUnavailableTimesServices
var availableRooms = allRooms var availableRooms = allRooms
.Where(r => r.status == true && !unavailableRoomIds.Contains(r.id) && !reservedRoomIds.Contains(r.id)) .Where(r => r.status == true && !unavailableRoomIds.Contains(r.id) && !reservedRoomIds.Contains(r.id))
.OrderBy(r => r.name) .OrderBy(r => r.name)
.Select(it => new { it.name, it.id }) .Select(it => new { name = it.name + $" {it.price_per_hour}/小时", it.id, it.capacity })
.ToList(); .ToList();
return new WebApiDto() return new WebApiDto()