fix(功能用例xmind导入): 修复xmind导入功能用例时id于用例在xmind的顺序不符,为倒序ID的问题

--bug=1008530 --user=宋天阳
【github#6867】通过XMIND导入用例时,生成的用例ID与实际XMIND编排的用例顺序不符,为倒序ID,请修改
https://www.tapd.cn/55049933/s/1078804
This commit is contained in:
song-tianyang 2021-12-08 16:26:28 +08:00 committed by song-tianyang
parent f919c8604e
commit 62dd5d18ec
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ public class TestCaseService {
testcase.setUpdateTime(System.currentTimeMillis());
testcase.setNodeId(nodePathMap.get(testcase.getNodePath()));
testcase.setSort(sort.getAndIncrement());
int number = num.decrementAndGet();
int number = num.incrementAndGet();
testcase.setNum(number);
if (project.getCustomNum() && StringUtils.isBlank(testcase.getCustomNum())) {
testcase.setCustomNum(String.valueOf(number));