From 09f4d7057ef103b4552fcded19a22d1286cc3bec Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 14 Apr 2022 14:48:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20UI=E6=8A=A5=E5=91=8A=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/service/ApiScenarioReportService.java | 4 ++-- ...iAutomationProxyService.java => UiReporServicetProxy.java} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename backend/src/main/java/io/metersphere/api/service/{UiAutomationProxyService.java => UiReporServicetProxy.java} (95%) 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);