From b05031b548bbe39b818a013ea64bd39a624a9149 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 1 Aug 2024 14:29:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E6=89=A7=E8=A1=8C=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FunctionalCaseManageInterceptor.java | 1 + .../functional/dto/FunctionalCaseMindDTO.java | 3 +++ .../mapper/ExtFunctionalCaseMapper.xml | 14 ++++++---- .../service/FunctionalCaseMinderService.java | 27 ++++++++++++++++++- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/config/FunctionalCaseManageInterceptor.java b/backend/services/case-management/src/main/java/io/metersphere/functional/config/FunctionalCaseManageInterceptor.java index dfb8e23f29..db7e575040 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/config/FunctionalCaseManageInterceptor.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/config/FunctionalCaseManageInterceptor.java @@ -16,6 +16,7 @@ public class FunctionalCaseManageInterceptor { List configList = new ArrayList<>(); configList.add(new MybatisInterceptorConfig(FunctionalCaseMindDTO.class, "steps", CompressUtils.class, "zip", "unzip")); + configList.add(new MybatisInterceptorConfig(FunctionalCaseMindDTO.class, "executeSteps", CompressUtils.class, "zip", "unzip")); configList.add(new MybatisInterceptorConfig(FunctionalCaseMindDTO.class, "textDescription", CompressUtils.class, "zip", "unzip")); configList.add(new MybatisInterceptorConfig(FunctionalCaseMindDTO.class, "expectedResult", CompressUtils.class, "zip", "unzip")); configList.add(new MybatisInterceptorConfig(FunctionalCaseMindDTO.class, "prerequisite", CompressUtils.class, "zip", "unzip")); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java index c55c1c7b8f..ff415130ef 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java @@ -63,6 +63,9 @@ public class FunctionalCaseMindDTO { @Schema(description = "用例步骤(JSON),step_model 为 Step 时启用") private byte[] steps; + @Schema(description = "执行用例步骤(JSON),step_model 为 Step 时启用") + private byte[] executeSteps; + @Schema(description = "步骤描述,step_model 为 Text 时启用") private byte[] textDescription; diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml index 9e4ed03927..dfabedc457 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml @@ -875,18 +875,22 @@