From 28f7e5bc26f16f0f44596b139265f8a447342e5a Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Fri, 1 Nov 2024 16:08:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EntrustAlterApplyServiceImpl.java | 5 +++++ src/main/resources/mapper/EntrustAlterApplyMapper.xml | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java index 781b9e7..116aa1d 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java @@ -40,6 +40,11 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl voPage(EntrustAlterApplyQuery query) { + DLPUser user = SecurityUtils.getUser(); + if (!user.isStaff()) { + query.setClientOrgId(user.getOrgId()); + query.setIsStaff(false); + } IPage entrustAlterApplyVOPage = baseMapper.getEntrustAlterApplyVOPage(new Page<>(query.getCurrent(), query.getSize()), query); entrustAlterApplyVOPage.getRecords().forEach(e -> { fillVOInfo(e); diff --git a/src/main/resources/mapper/EntrustAlterApplyMapper.xml b/src/main/resources/mapper/EntrustAlterApplyMapper.xml index fbb6e6a..80403b1 100644 --- a/src/main/resources/mapper/EntrustAlterApplyMapper.xml +++ b/src/main/resources/mapper/EntrustAlterApplyMapper.xml @@ -35,7 +35,6 @@