diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java index 4b2e100b56..7fecd18cc9 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java @@ -80,7 +80,7 @@ public class ApiScenarioReportService { @Resource private ApiDefinitionExecResultMapper definitionExecResultMapper; @Resource - private UiAutomationProxyService uiAutomationProxyService; + private UiReporServicetProxy uiReporServicetProxy; public void saveResult(List requestResults, ResultDTO dto) { // 报告详情内容 @@ -94,7 +94,7 @@ public class ApiScenarioReportService { public void saveUiResult(List requestResults, ResultDTO dto) { // 报告详情内容 - uiAutomationProxyService.saveUiResult(dto.getReportId(), requestResults); + uiReporServicetProxy.saveUiResult(dto.getReportId(), requestResults); } public ApiScenarioReport testEnded(ResultDTO dto) { diff --git a/backend/src/main/java/io/metersphere/api/service/UiAutomationProxyService.java b/backend/src/main/java/io/metersphere/api/service/UiReporServicetProxy.java similarity index 95% rename from backend/src/main/java/io/metersphere/api/service/UiAutomationProxyService.java rename to backend/src/main/java/io/metersphere/api/service/UiReporServicetProxy.java index 5492347019..473515aedb 100644 --- a/backend/src/main/java/io/metersphere/api/service/UiAutomationProxyService.java +++ b/backend/src/main/java/io/metersphere/api/service/UiReporServicetProxy.java @@ -12,7 +12,7 @@ import java.util.function.Function; @Service @Transactional(rollbackFor = Exception.class) -public class UiAutomationProxyService { +public class UiReporServicetProxy { public Object saveUiResult(String reportId, List queue) { return invoke((clazz) -> { @@ -26,7 +26,7 @@ public class UiAutomationProxyService { } private Object invoke(Function getDeclaredMethod, Object... args) { - Object uiAutomationService = CommonBeanFactory.getBean("uiAutomationService"); + Object uiAutomationService = CommonBeanFactory.getBean("uiReportService"); try { Class clazz = uiAutomationService.getClass(); Method postProcessUiReport = getDeclaredMethod.apply(clazz);