From ae474fadd79544e225e317568c94a992c8bb9390 Mon Sep 17 00:00:00 2001 From: q4speed Date: Fri, 16 Oct 2020 23:39:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=80=E8=BF=91=E7=9A=84=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E6=94=B9=E4=B8=BA=E6=88=91=E6=9C=80=E8=BF=91=E7=9A=84?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ext/ExtTestCaseReviewMapper.java | 3 ++- .../base/mapper/ext/ExtTestCaseReviewMapper.xml | 17 ++++++++++++----- .../track/service/TestCaseReviewService.java | 3 ++- frontend/src/i18n/en-US.js | 2 +- frontend/src/i18n/zh-CN.js | 2 +- frontend/src/i18n/zh-TW.js | 2 +- 6 files changed, 19 insertions(+), 10 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.java index aab6849b78..791044b1bb 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseReviewMapper.java @@ -12,12 +12,13 @@ public interface ExtTestCaseReviewMapper { List list(@Param("request") QueryCaseReviewRequest params); - List listByWorkspaceId(@Param("workspaceId") String workspaceId); + List listByWorkspaceId(@Param("workspaceId") String workspaceId, @Param("userId") String userId); List listRelate(@Param("request") QueryTestReviewRequest request); /** * 检查某工作空间下是否有某测试评审 + * * @param reviewId * @param workspaceId * @return Review ID 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 d0eac18a7f..4c1976ad86 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 @@ -27,11 +27,18 @@