|
|
|
|
@ -265,7 +265,18 @@ namespace ATS.NonCustodial.Application.Impl.Business
|
|
|
|
|
[AllowAnonymous] |
|
|
|
|
public async Task<IResultOutput> GetPageAsync(AppEarlyWarningGetPageInput input) |
|
|
|
|
{ |
|
|
|
|
//获取当前用户权限下的案件ids |
|
|
|
|
var limits = User.limits; |
|
|
|
|
var selectLimits = await _appCaseSupervisorRepository.AsQueryable(false, true) |
|
|
|
|
.Where(w => limits.Contains(w.UnitId.ToString())) |
|
|
|
|
.ToListAsync(); |
|
|
|
|
var caseIdList = selectLimits.Select(w => w.CaseId).Distinct().ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var express = await GetExpression(input, _appEarlyWarningRepository.AsQueryable(false, true)); |
|
|
|
|
// 先应用案件ID过滤条件 |
|
|
|
|
express = express.Where(w => caseIdList.Contains(w.CaseId)); |
|
|
|
|
// 然后再获取分页数据 |
|
|
|
|
return await base.GetEntityAddPageAsync<AppEarlyWarning, AppEarlyWarningGetPageInput, AppEarlyWarningListDto>(input, express); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|