From cc24cbc7fb8491366c4b2edb63f7f7724a5fb7ec Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 10 Oct 2023 11:23:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E4=BF=9D=E5=AD=98=E9=85=8D=E9=A2=9D?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/quota/service/QuotaManagementService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java index 207cbdd131..ee44730ed8 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java @@ -79,7 +79,7 @@ public class QuotaManagementService { quota.setResourcePool(String.join(",", intersection)); } - if (ObjectUtils.isNotEmpty(workspaceQuota) && ObjectUtils.isNotEmpty(quota) && StringUtils.isBlank(workspaceQuota.getModuleSetting())) { + if (ObjectUtils.isNotEmpty(workspaceQuota) && ObjectUtils.isNotEmpty(quota) && StringUtils.isNotBlank(workspaceQuota.getModuleSetting())) { List workModules = Arrays.asList(workspaceQuota.getModuleSetting().split(",")); List projectModules = StringUtils.isNotBlank(quota.getModuleSetting()) ? Arrays.asList(quota.getModuleSetting().split(",")) : new ArrayList<>(); List moduleIntersection = workModules.stream()