From 379991d3ab24624225f9d6c924f0577adad21809 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 9 Aug 2023 16:38:19 +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=8D=E6=96=87=E6=A1=A3=E6=96=AD=E8=A8=80=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028297 --user=王孝刚 【接口测试】test-断言-文档断言-跟随api定义-数值类型显示为bigdecimal https://www.tapd.cn/55049933/s/1402134 --- .../src/main/java/io/metersphere/utils/DocumentUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 910e88602b..4e22b3da00 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 @@ -73,7 +73,7 @@ public class DocumentUtils { String type = object.getClass().getName().substring(object.getClass().getName().lastIndexOf(".") + 1); if (StringUtils.equalsIgnoreCase("Integer", type)) { return type.toLowerCase(); - } else if (StringUtils.equalsAnyIgnoreCase(type, "integer", "float", "long", "double")) { + } else if (StringUtils.equalsAnyIgnoreCase(type, "integer", "float", "long", "double", "short", "byte", "bigdecimal", "biginteger")) { return "number"; } else if (StringUtils.indexOfAny(type, "Array", "List") != -1) { return "array";