fix bug
This commit is contained in:
parent
25b7e1a3de
commit
82037a0895
|
|
@ -267,7 +267,7 @@ public class SQController : ControllerBase
|
|||
{
|
||||
var userId = _user.ID;
|
||||
var list = await _sQReservationEvaluateServices.QueryListByClauseAsync(it => it.reservation_id == reId && it.user_id == userId);
|
||||
var participants = await _dbBase.Ado.SqlQueryAsync<SQReservationParticipantsApiDto>($"select p.id,p.reservation_id,p.status,p.join_time,p.user_id, p.role,u.nickName UserName,u.avatarImage AvatarImage,ISNULL(u.play_level,4) play_level,ISNULL(u.skills_level,4) skills_level from SQReservationParticipants p inner join CoreCmsUser u on p.user_id=u.id where p.status=0 and p.reservation_id ={reId} and p.is_arrive=1 ");
|
||||
var participants = await _dbBase.Ado.SqlQueryAsync<SQReservationParticipantsApiEavDto>($"select p.id,p.reservation_id,p.status,p.join_time,p.user_id, p.role,u.nickName UserName,u.avatarImage AvatarImage,ISNULL(u.play_level,4) play_level,ISNULL(u.skills_level,4) skills_level from SQReservationParticipants p inner join CoreCmsUser u on p.user_id=u.id where p.status=0 and p.reservation_id ={reId} and p.is_arrive=1 ");
|
||||
if (participants == null || participants.Count == 0)
|
||||
{
|
||||
return new WebApiDto()
|
||||
|
|
@ -815,7 +815,7 @@ public class SQController : ControllerBase
|
|||
}
|
||||
|
||||
// 2.1 校验用户是否有其它预约时间冲突(只查未开始或正在进行中的预约)
|
||||
var now = DateTime.Now;
|
||||
now = DateTime.Now;
|
||||
var hasConflict = await _SQReservationParticipantsServices.QueryMuchAsync<SQReservationParticipants, SQReservations, int>(
|
||||
(p, r) => new object[]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user