fix(接口测试): 修复CASE集成报告重命名不生效问题

--bug=1014449 --user=赵勇 【接口测试】测试报告用例集合case,修改测试用例报告名称,修改后名称未改变 https://www.tapd.cn/55049933/s/1192069
This commit is contained in:
fit2-zhao 2022-06-29 17:49:45 +08:00 committed by f2c-ci-robot[bot]
parent 0f79c15c2f
commit 9e675d6e10
1 changed files with 1 additions and 1 deletions

View File

@ -952,7 +952,7 @@ public class ApiScenarioReportService {
}
public void reName(ApiScenarioReport reportRequest) {
if (StringUtils.equalsIgnoreCase(reportRequest.getReportType(), ReportTypeConstants.API_INDEPENDENT.name())) {
if (StringUtils.equalsAnyIgnoreCase(reportRequest.getReportType(), ReportTypeConstants.API_INDEPENDENT.name(), ReportTypeConstants.API_INTEGRATED.name())) {
ApiDefinitionExecResult result = definitionExecResultMapper.selectByPrimaryKey(reportRequest.getId());
if (result != null) {
result.setName(reportRequest.getName());