feat(消息通知): 测试计划增加执行结果变量

--story=1009289 --user=刘瑞斌 【系统设置】消息通知-测试计划新增通知字段 https://www.tapd.cn/55049933/s/1241750
This commit is contained in:
CaptainB 2022-09-19 19:44:19 +08:00 committed by 刘瑞斌
parent 018d806b6e
commit 577a214b3a
1 changed files with 2 additions and 2 deletions

View File

@ -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);