From 4decb3d35d3c0196377bd5710d88415bcaa9af36 Mon Sep 17 00:00:00 2001 From: zpc Date: Thu, 11 Sep 2025 03:10:32 +0800 Subject: [PATCH] 3232 --- CoreCms.Net.Web.WebApi/Controllers/SQController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 9ebeb82..5700061 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -138,7 +138,7 @@ public class SQController : ControllerBase var room = roomList.Find(it => it.id == item.room_id); if (room != null) { - item.room_name = $"{room.name} {room.price_per_hour}/小时 {room.capacity}/人数"; + item.room_name = $"{room.name} {room.price_per_hour.ToString("#.##")}/小时 {room.capacity}/人数"; } var dto = _mapper.Map>(temp);