From 275499002af5cbdcfea8c2ed5504c7c84b8f0919 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 23 Nov 2022 11:05:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9C=8D=E5=8A=A1=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E4=BC=9A=E6=B8=85=E7=90=86=E5=B9=B3=E5=8F=B0=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/service/PluginService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-test/backend/src/main/java/io/metersphere/service/PluginService.java b/api-test/backend/src/main/java/io/metersphere/service/PluginService.java index aeb8d445bc..777e09fdad 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/PluginService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/PluginService.java @@ -6,6 +6,7 @@ import io.metersphere.base.domain.Plugin; import io.metersphere.base.domain.PluginExample; import io.metersphere.base.domain.PluginWithBLOBs; import io.metersphere.base.mapper.PluginMapper; +import io.metersphere.commons.constants.PluginScenario; import io.metersphere.commons.utils.BeanUtils; import io.metersphere.commons.utils.FileUtils; import io.metersphere.commons.utils.LogUtil; @@ -63,6 +64,7 @@ public class PluginService { public void loadPlugins() { try { PluginExample example = new PluginExample(); + example.createCriteria().andScenarioEqualTo(PluginScenario.api.name()); List plugins = pluginMapper.selectByExample(example); if (CollectionUtils.isNotEmpty(plugins)) { plugins = plugins.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(()