From 639a6fb3a4430c23c8ac1e2a6a8bab4048d5e1ee Mon Sep 17 00:00:00 2001 From: zhaozhenjing Date: Wed, 17 Sep 2025 16:45:53 +0800 Subject: [PATCH] =?UTF-8?q?[MODIFY]=20=E8=B6=8A=E7=95=8C=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Impl/Business/AppBusinessApplicationService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppBusinessApplicationService.cs b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppBusinessApplicationService.cs index cd6090c..33bebf7 100644 --- a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppBusinessApplicationService.cs +++ b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppBusinessApplicationService.cs @@ -101,8 +101,16 @@ namespace ATS.NonCustodial.Application.Impl.Business [HttpPost] public async Task GetPageAsync(AppBusinessApplicationGetPageInput 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, _appBusinessApplicationRepository.AsQueryable(false, true)); var rtn = await base.GetPageAsync(input, express); + rtn.Data = rtn.Data.Where(w => caseIdList.Contains(w.CaseId)).ToList(); return ResultOutput.Ok(rtn); }