feat(接口测试): 修复报告列表查不到用例集合报告的问题

--bug=1019678 --user=宋天阳 【接口测试】测试报告 - 用例报告列表不显示用例集合报告了
https://www.tapd.cn/55049933/s/1296742
This commit is contained in:
song-tianyang 2022-11-16 16:12:52 +08:00 committed by 建国
parent af3ce00a58
commit bda779d0d6
3 changed files with 17 additions and 9 deletions

View File

@ -49,10 +49,14 @@ public class ExtApiDefinitionExecResultProvider {
.append(result.getContent())
.append("','")
.append(result.getEnvConfig());
//判断有没有关联的测试报告ID
sqlList.append("','")
.append(StringUtils.defaultIfBlank(result.getRelevanceTestPlanReportId(), "null"))
.append("'");
//判断有没有关联的测试报告ID. 要注意如果赋null的话前后不能有 ' '否则会变成字符串'null'
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
sqlList.append("', null");
} else {
sqlList.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'");
}
sqlList.append(")");
if (i < list.size() - 1) {
sqlList.append(",");

View File

@ -51,10 +51,14 @@ public class ExtApiScenarioReportProvider {
.append(result.getReportType())
.append("','")
.append(result.getEnvConfig());
//判断有没有关联的测试报告ID
sqlList.append("','")
.append(StringUtils.defaultIfBlank(result.getRelevanceTestPlanReportId(), "null"))
.append("'");
//判断有没有关联的测试报告ID. 要注意如果赋null的话前后不能有 ' '否则会变成字符串'null'
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
sqlList.append("', null");
} else {
sqlList.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'");
}
sqlList.append(")");
if (i < list.size() - 1) {
sqlList.append(",");

View File

@ -93,7 +93,7 @@ export default {
let borderWidth = 0;
let colorArr = ['#DEE0E3', '#DEE0E3', '#DEE0E3', '#DEE0E3'];
if (this.getTotal() > 0) {
colorArr = ['#AA4FBF', '#FFD131', '#10CECE', '#4261F6',];
colorArr = ['#AA4FBF', '#FAD355', '#14E1C6', '#4E83FD',];
borderWidth = 3;
dataIsNotEmpty = true;
protocolData = [