From 241450ddf107f29cfe9fa8dc70a93db1a88380eb Mon Sep 17 00:00:00 2001 From: zhaozhenjing Date: Wed, 17 Sep 2025 14:23:51 +0800 Subject: [PATCH] =?UTF-8?q?[MODIFY]=20=E5=AE=9A=E4=BD=8D=E5=88=86=E5=B8=83?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=A2=9E=E5=8A=A0=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Impl/Business/AppDeviceManagementService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppDeviceManagementService.cs b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppDeviceManagementService.cs index c31f897..b276b2e 100644 --- a/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppDeviceManagementService.cs +++ b/src/2.services/ATS.NonCustodial.Application/Impl/Business/AppDeviceManagementService.cs @@ -101,9 +101,14 @@ namespace ATS.NonCustodial.Application.Impl.Business { var express =await GetExpression(input, _appDeviceManagementRepository.AsQueryable(false, true)); var rtn = await base.GetPageAsync(input, express); + var limits = User.limits; + var selectLimits = await _appCaseSupervisorRepository.AsQueryable(false, true) + .Where(w => limits.Contains(w.UnitId.ToString())).Select(s=>s.SupervisorId) + .ToListAsync(); + var userList = await _userService.GetAllByConditionAsync(new BatchIdsInput() { - Ids = rtn.Data.Select(w => w.SupervisedPersonId).ToList() + Ids = rtn.Data.Where(w=> selectLimits.Contains(w.SupervisedPersonId)).Select(w => w.SupervisedPersonId).ToList() }); await rtn.Data.ForEachAsync(item =>