fix(测试跟踪): 关联用例列表展示顺序

--bug=1024868 --user=宋昌昌 【测试跟踪】功能用例- 编辑用例-关联用例-未按关联的顺序升序显示 https://www.tapd.cn/55049933/s/1356016
This commit is contained in:
song-cc-rock 2023-03-27 17:50:36 +08:00 committed by jianxing
parent 9da64c9d78
commit 6f59f9623c
1 changed files with 2 additions and 0 deletions

View File

@ -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()), getTestCaseTestDaoList(TestCaseTestType.uiAutomation.name(), item.getNum(), item.getName(), item.getId(), projectNameMap.get(item.getProjectId()), versionNameMap.get(item.getVersionId()),
testCaseTestList, testCaseTestsMap); testCaseTestList, testCaseTestsMap);
}); });
// 根据关联记录时间展示
Collections.sort(testCaseTestList, Comparator.comparingLong(TestCaseTestDao::getCreateTime));
return testCaseTestList; return testCaseTestList;
} }