diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 65a2b88..9f97d8a 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -90,7 +90,7 @@ public class SQController : ControllerBase { var userId = _user.ID; - var list = await _dbBase.Ado.SqlQueryAsync($"select top r.*,p.id pid, p.status pstatus,p.join_time, p.quit_time ,p.is_refund from SQReservationParticipants p inner join SQReservations r on p.reservation_id=r.id where p.user_id={userId} and p.role={type} order by p.id desc OFFSET {(index - 1) * size} ROWS FETCH NEXT {size} ROWS ONLY"); + var list = await _dbBase.Ado.SqlQueryAsync($"select r.*,p.id pid, p.status pstatus,p.join_time, p.quit_time ,p.is_refund from SQReservationParticipants p inner join SQReservations r on p.reservation_id=r.id where p.user_id={userId} and p.role={type} order by p.id desc OFFSET {(index - 1) * size} ROWS FETCH NEXT {size} ROWS ONLY"); if (list != null && list.Count > 0) { // 转为基类列表 @@ -159,20 +159,4 @@ public class SQController : ControllerBase }; } - - - - /// - /// - /// - /// - /// - [HttpGet] - public async Task GetReservationDetail([FromQuery] int id) - { - return new WebApiDto() - { - - }; - } }