From e69c669ae1d0fd21e7dc4a50407a7f921a84e9e8 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 27 Jun 2023 18:52:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=A8=A1=E5=9D=97=E6=A0=91UI=E5=85=B3?= =?UTF-8?q?=E8=81=94=E6=95=B0=E6=8D=AE=E6=9C=AA=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1026884 --user=宋昌昌 【测试跟踪】首页-关联用例数量统计-已覆盖跳转链接页面左侧模块统计数和右侧不一致 https://www.tapd.cn/55049933/s/1387200 --- .../main/java/io/metersphere/service/TestCaseNodeService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseNodeService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseNodeService.java index 0c1fc6d69c..b0ebc86c4e 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseNodeService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseNodeService.java @@ -11,6 +11,7 @@ import io.metersphere.base.mapper.ext.ExtTestCaseMapper; import io.metersphere.base.mapper.ext.ExtTestCaseNodeMapper; import io.metersphere.base.mapper.ext.ExtTestPlanTestCaseMapper; import io.metersphere.base.mapper.ext.ExtTestReviewCaseMapper; +import io.metersphere.commons.constants.MicroServiceName; import io.metersphere.commons.constants.TestCaseConstants; import io.metersphere.commons.exception.MSException; import io.metersphere.commons.utils.*; @@ -28,6 +29,7 @@ import io.metersphere.plan.service.TestPlanProjectService; import io.metersphere.plan.service.TestPlanService; import io.metersphere.request.testcase.*; import io.metersphere.request.testreview.QueryCaseReviewRequest; +import io.metersphere.utils.DiscoveryUtil; import jakarta.annotation.Resource; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.session.ExecutorType; @@ -233,6 +235,8 @@ public class TestCaseNodeService extends NodeTreeService { public Map getNodeCountMapByProjectId(String projectId, QueryTestCaseRequest request) { + boolean queryUi = DiscoveryUtil.hasService(MicroServiceName.UI_TEST); + request.setQueryUi(queryUi); this.setRequestWeekParam(request); request.setProjectId(projectId); request.setUserId(SessionUtils.getUserId());