From 6477892630f8f0d32068071752c895b897769a5c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 1 Nov 2024 16:20:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Djexl3=E8=A1=A8=E8=BE=BE=E5=BC=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fit2-zhao --- .../api/dto/definition/request/controller/MsLoopController.java | 2 +- .../src/main/java/io/metersphere/utils/DocumentUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java index e687a59304..8d69beb488 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/controller/MsLoopController.java @@ -157,7 +157,7 @@ public class MsLoopController extends MsTestElement { value = ""; } ms_current_timer = UUID.randomUUID().toString(); - return "${__jexl3(" + variable + operator + value + ")}"; + return variable + operator + value; } private IfController ifController(String condition) { diff --git a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java index 50255fa4dc..238bc9ec13 100644 --- a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java +++ b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/utils/DocumentUtils.java @@ -110,7 +110,7 @@ public class DocumentUtils { } else if (!(subj instanceof Double) && !(subj instanceof Float)) { str = subj.toString(); } else { - str = ((DecimalFormat) decimalFormatter.get()).format(subj); + str = decimalFormatter.get().format(subj); } return str; }