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("'")
.append(result.getId()) .append(result.getId())
.append("','") .append("','")
.append(result.getName()) .append(result.getName().replace("\'", "\\'"))
.append("','") .append("','")
.append(result.getResourceId()) .append(result.getResourceId())
.append("','") .append("','")

View File

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