From 5b924548c02cd3ce1a5ab2e231f2e1073efd35df Mon Sep 17 00:00:00 2001 From: zhaozhenjing Date: Wed, 17 Sep 2025 16:29:09 +0800 Subject: [PATCH] =?UTF-8?q?[MODIFY]=20APP=E6=89=93=E5=8D=A1=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Impl/Business/AppAnnouncementService.cs | 2 +- .../Impl/Business/AppPunchRecordService.cs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppAnnouncementService.cs b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppAnnouncementService.cs index 3269072..09d32ed 100644 --- a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppAnnouncementService.cs +++ b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppAnnouncementService.cs @@ -119,7 +119,7 @@ namespace ATS.NonCustodial.Application.Impl.Business var express = GetExpression(input, _appAnnouncementRepository.AsQueryable(false, true)); var rtn = (await base.GetPageAsync(input, express)); - // rtn.Data = rtn.Data.Where(w => appAnnouncementViewStatistics.Contains(w.Id)); + rtn.Data = rtn.Data.Where(w => appAnnouncementViewStatistics.Contains(w.Id)).ToList(); return ResultOutput.Ok(rtn); } diff --git a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs index aa80fd5..7b99685 100644 --- a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs +++ b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs @@ -183,7 +183,14 @@ namespace ATS.NonCustodial.Application.Impl.Business [HttpPost] public async Task GetPunchPageAsync(AppPunchRecordGetPageInput input) { - var caseIds = await (await base.GetCurrentUserCaseListAsync()).Select(w => w.AppCaseManagement.Id).ToListAsync(); + //获取当前用户权限下的案件ids + var limits = User.limits; + var selectLimits = await _appCaseSupervisorRepository.AsQueryable(false, true) + .Where(w => limits.Contains(w.UnitId.ToString())) + .ToListAsync(); + var caseIds = selectLimits.Select(w => w.CaseId).Distinct().ToList(); + + // var caseIds = await (await base.GetCurrentUserCaseListAsync()).Select(w => w.AppCaseManagement.Id).ToListAsync(); //var list= await base._appSupervisedPersonRepository.AsQueryable(false, true).Where(q=> caseIds.Contains(q.CaseId)).ToListAsync(); var data = await _appPunchRecordStatisticsRepository