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);