From cd617558a36ce40cac01eb98027105784f492eaa Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 2 Jun 2023 11:10:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E7=94=A8=E4=BE=8B=E5=BA=93=E5=A4=9A=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=AD=9B=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/request/BaseQueryRequest.java | 5 -- .../base/mapper/ext/ExtTestCaseMapper.xml | 49 ++++++------------- .../testcase/TestCaseBatchRequest.java | 9 ---- .../service/TestCaseNodeService.java | 1 + .../metersphere/service/TestCaseService.java | 1 + 5 files changed, 18 insertions(+), 47 deletions(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/BaseQueryRequest.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/BaseQueryRequest.java index fb2ca50856..25a5ff14ee 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/BaseQueryRequest.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/BaseQueryRequest.java @@ -69,11 +69,6 @@ public class BaseQueryRequest { */ private Map combine; - /** - * 要查询的字段 - */ - private List selectFields; - /** * 版本 ID */ diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 2bad2c4812..bb3913f88a 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -288,20 +288,13 @@ project_version.id as versionId, test_case.last_execute_result, test_case.prerequisite, test_case.steps, remark, test_case.expected_result, test_case.step_description, - - - ${field} - - - - test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`, - test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`, - test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num, - test_case.review_status, test_case.tags, - test_case.demand_id, test_case.demand_name, test_case.`status`, - test_case.custom_num, test_case.step_model, test_case.create_user, - test_case.ref_id,test_case.latest - + test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`, + test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`, + test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num, + test_case.review_status, test_case.tags, + test_case.demand_id, test_case.demand_name, test_case.`status`, + test_case.custom_num, test_case.step_model, test_case.create_user, + test_case.ref_id,test_case.latest from test_case left join project_version on project_version.id = test_case.version_id @@ -311,22 +304,15 @@