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 @@