From bad796ed643b3a93ce4cae8815e27ed1528d5473 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 6 Jul 2022 17:30:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=AF=84=E5=AE=A1=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1007020 --user=陈建星 #12422测试用例自定义字段没有筛选功能 https://www.tapd.cn/55049933/s/1195547 --- .../mapper/ext/ExtTestCaseReviewMapper.xml | 44 +-- .../base/mapper/ext/ExtTestPlanMapper.java | 2 - .../base/mapper/ext/ExtTestPlanMapper.xml | 147 +++++----- .../table/MsTableFollowOperator.vue | 34 +++ .../common/components/table/MsTagsColumn.vue | 32 +++ .../track/case/components/TestCaseList.vue | 36 ++- .../components/track/issue/IssueList.vue | 28 +- .../track/plan/components/TestPlanList.vue | 23 +- .../review/components/TestCaseReviewList.vue | 265 ++++++++---------- .../src/common/js/default-table-header.js | 2 - frontend/src/common/js/table-constants.js | 43 ++- frontend/src/common/js/tableUtils.js | 17 ++ frontend/src/network/user.js | 11 + 13 files changed, 374 insertions(+), 310 deletions(-) create mode 100644 frontend/src/business/components/common/components/table/MsTableFollowOperator.vue create mode 100644 frontend/src/business/components/common/components/table/MsTagsColumn.vue diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml index b3de68fa72..cb2211d16d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.xml @@ -102,29 +102,31 @@ and test_case_review.project_id = #{request.projectId} - - - - - - - and test_case_review.stage in - - #{value} - - - - and test_case_review.status in - - #{value} - - - - - - + + + + + + + + and test_case_review.stage in + + + + and test_case_review.status in + + + + and test_case_review.creator in + + + + + + + + + + + + + + + + + AND (( test_plan_principal.principal_id = + '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and + test_plan.status in + + ) + or + (test_plan_test_case.executor = + '${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and + test_plan_test_case.status in + + )) + AND test_plan.status != 'Archived' + + + and test_plan.status in + + + + + + + + and test_plan.stage in + + + + and test_plan.creator in + + + + and + + + schedule.`enable` = 1 + + + schedule.`enable` = 0 + + + schedule.id is null + + + + + and test_plan.status != 'Archived' + + + + + and test_plan.status != 'Archived' + + + + + - -