321
This commit is contained in:
parent
089d7fe323
commit
7da6b09efc
|
|
@ -90,7 +90,7 @@ public class SQController : ControllerBase
|
|||
{
|
||||
var userId = _user.ID;
|
||||
|
||||
var list = await _dbBase.Ado.SqlQueryAsync<SQReservationsMyDto>($"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<SQReservationsMyDto>($"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
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<WebApiDto> GetReservationDetail([FromQuery] int id)
|
||||
{
|
||||
return new WebApiDto()
|
||||
{
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user