style(测试跟踪): 修复xmind导入用例时用例顺序是倒序的问题
--bug=1014419 --user=宋天阳 【测试跟踪】github#15312 使用思维导图导入功能用例,功能列表数据显示是思维导图的倒序数据 https://www.tapd.cn/55049933/s/1194234
This commit is contained in:
parent
08f768ab01
commit
7da19517b8
|
@ -1105,9 +1105,7 @@ public class TestCaseService {
|
|||
if (!testCases.isEmpty()) {
|
||||
Integer num = importCreateNum.get();
|
||||
Integer beforeInsertId = beforeImportCreateNum.get();
|
||||
|
||||
for (int i = testCases.size() - 1; i > -1; i--) { // 反向遍历,保持和文件顺序一致
|
||||
TestCaseWithBLOBs testCase = testCases.get(i);
|
||||
for (TestCaseWithBLOBs testCase : testCases) {
|
||||
testCase.setId(UUID.randomUUID().toString());
|
||||
testCase.setCreateUser(SessionUtils.getUserId());
|
||||
testCase.setCreateTime(System.currentTimeMillis());
|
||||
|
|
Loading…
Reference in New Issue