From 78a8e7bc272f65636dd6138853be62eefb6827e9 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 20 Mar 2023 14:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E9=85=8D=E9=A2=9D=E9=80=89=E6=8B=A9=E9=BB=98=E8=AE=A4=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024623 --user=李玉号 【系统设置】配额选择“默认设置”,没有生效 https://www.tapd.cn/55049933/s/1352806 --- .../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 1664eb001f..9a133948c7 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 @@ -122,7 +122,7 @@ public class QuotaManagementService { BigDecimal vumTotal = quota.getVumTotal(); BigDecimal max = BigDecimal.valueOf(99999999.00); - if (vumTotal.compareTo(max) > 0) { + if (vumTotal != null && vumTotal.compareTo(max) > 0) { MSException.throwException("总vum数量不能超过99999999!"); } quotaMapper.insert(quota);