revert
This commit is contained in:
parent
5e2cf90153
commit
a94947289d
1 changed files with 7 additions and 7 deletions
|
|
@ -638,12 +638,12 @@ namespace BMA.EHR.Recruit.Service.Controllers
|
||||||
return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden);
|
return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden);
|
||||||
}
|
}
|
||||||
var data = await _context.RecruitImports.AsQueryable()
|
var data = await _context.RecruitImports.AsQueryable()
|
||||||
//.Include(x => x.ImportFile)
|
.Include(x => x.ImportFile)
|
||||||
//.Include(x => x.Recruits)
|
.Include(x => x.Recruits)
|
||||||
//.Include(x => x.ScoreImport)
|
.Include(x => x.ScoreImport)
|
||||||
//.ThenInclude(x => x.ImportFile)
|
.ThenInclude(x => x.ImportFile)
|
||||||
//.Include(x => x.ScoreImport)
|
.Include(x => x.ScoreImport)
|
||||||
//.ThenInclude(x => x.Scores)
|
.ThenInclude(x => x.Scores)
|
||||||
.OrderByDescending(x => x.Year)
|
.OrderByDescending(x => x.Year)
|
||||||
.ThenByDescending(x => x.Order)
|
.ThenByDescending(x => x.Order)
|
||||||
.ThenByDescending(x => x.LastUpdatedAt)
|
.ThenByDescending(x => x.LastUpdatedAt)
|
||||||
|
|
@ -668,7 +668,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
|
||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
//var roles = _httpContextAccessor?.HttpContext?.User?.FindAll(ClaimTypes.Role)?.Select(c => c.Value).ToList();
|
var roles = _httpContextAccessor?.HttpContext?.User?.FindAll(ClaimTypes.Role)?.Select(c => c.Value).ToList();
|
||||||
|
|
||||||
return Success(data);
|
return Success(data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue