fix(接口测试): 修复批量存储特殊字符处理

This commit is contained in:
fit2-zhao 2022-03-21 10:07:17 +08:00 committed by fit2-zhao
parent b42f39b370
commit 4248d2b029
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ public class ExtApiDefinitionExecResultProvider {
.append("'")
.append(result.getId())
.append("','")
.append(result.getName())
.append(result.getName().replace("\'", "\\'"))
.append("','")
.append(result.getResourceId())
.append("','")

View File

@ -17,7 +17,7 @@ public class ExtApiScenarioReportProvider {
.append("','")
.append(result.getProjectId())
.append("','")
.append(result.getName())
.append(result.getName().replace("\'", "\\'"))
.append("',")
.append(result.getCreateTime())
.append(",")
@ -31,7 +31,7 @@ public class ExtApiScenarioReportProvider {
.append("','")
.append(result.getExecuteType())
.append("','")
.append(result.getScenarioName())
.append(result.getScenarioName().replace("\'", "\\'"))
.append("','")
.append(result.getScenarioId())
.append("','")