21321
This commit is contained in:
parent
56f6139bd1
commit
5ff938472a
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user