From 6f59f9623ce684c8d0786ea176801dabaa367893 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 27 Mar 2023 17:50:36 +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=B3=E8=81=94=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024868 --user=宋昌昌 【测试跟踪】功能用例- 编辑用例-关联用例-未按关联的顺序升序显示 https://www.tapd.cn/55049933/s/1356016 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index a25e97d9e0..6c3a719cf4 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -2779,6 +2779,8 @@ public class TestCaseService { getTestCaseTestDaoList(TestCaseTestType.uiAutomation.name(), item.getNum(), item.getName(), item.getId(), projectNameMap.get(item.getProjectId()), versionNameMap.get(item.getVersionId()), testCaseTestList, testCaseTestsMap); }); + // 根据关联记录时间展示 + Collections.sort(testCaseTestList, Comparator.comparingLong(TestCaseTestDao::getCreateTime)); return testCaseTestList; }