From 312b028ade34484f78435a24d3f70bc1607af848 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 25 Dec 2020 11:16:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=88=97=E8=A1=A8=E5=86=85=E5=AE=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/ApiScenarioReportService.java | 4 +- .../scenario/api/ScenarioApiRelevance.vue | 2 +- .../scenario/api/ScenarioRelevance.vue | 2 +- .../scenario/api/ScenarioRelevanceApiList.vue | 127 +++++++++--------- .../api/ScenarioRelevanceCaseList.vue | 1 - 5 files changed, 68 insertions(+), 68 deletions(-) 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 589caa0073..82a4896c1f 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java @@ -96,6 +96,8 @@ public class ApiScenarioReportService { report.setId(test.getId()); report.setProjectId(test.getProjectId()); report.setName(test.getName()); + report.setScenarioName(test.getScenarioName()); + report.setScenarioId(test.getScenarioId()); report.setTriggerMode(test.getTriggerMode()); report.setDescription(test.getDescription()); report.setCreateTime(System.currentTimeMillis()); @@ -103,7 +105,7 @@ public class ApiScenarioReportService { report.setStatus(test.getStatus()); report.setUserId(test.getUserId()); report.setExecuteType(test.getExecuteType()); - apiScenarioReportMapper.updateByPrimaryKey(report); + apiScenarioReportMapper.updateByPrimaryKeySelective(report); return report; } diff --git a/frontend/src/business/components/api/automation/scenario/api/ScenarioApiRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ScenarioApiRelevance.vue index 1a0589942e..0947ae6769 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ScenarioApiRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ScenarioApiRelevance.vue @@ -1,7 +1,7 @@