From 577a214b3a6eee7c43d4d5eda66a6b885118f7e8 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 19 Sep 2022 19:44:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=A2=9E=E5=8A=A0=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=BB=93=E6=9E=9C=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1009289 --user=刘瑞斌 【系统设置】消息通知-测试计划新增通知字段 https://www.tapd.cn/55049933/s/1241750 --- .../io/metersphere/track/service/TestPlanMessageService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java index afe0937c13..96c38a2abf 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanMessageService.java @@ -160,10 +160,10 @@ public class TestPlanMessageService { // 执行率 通过率 两位小数 if (report.getPassRate() != null && !report.getPassRate().isNaN()) { - paramMap.put("passRate", String.format("%.2f", report.getPassRate())); + paramMap.put("passRate", String.format("%.2f", report.getPassRate() * 100)); } if (report.getExecuteRate() != null && !report.getExecuteRate().isNaN()) { - paramMap.put("executeRate", String.format("%.2f", report.getExecuteRate())); + paramMap.put("executeRate", String.format("%.2f", report.getExecuteRate() * 100)); } paramMap.putAll(caseCountMap);