From 4456fe8506ce50d5a56e3552abb923613b8a4c08 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 8 Dec 2021 16:26:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8Bxmind?= =?UTF-8?q?=E5=AF=BC=E5=85=A5):=20=E4=BF=AE=E5=A4=8Dxmind=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E6=97=B6id?= =?UTF-8?q?=E4=BA=8E=E7=94=A8=E4=BE=8B=E5=9C=A8xmind=E7=9A=84=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E4=B8=8D=E7=AC=A6=EF=BC=8C=E4=B8=BA=E5=80=92=E5=BA=8F?= =?UTF-8?q?ID=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1008530 --user=宋天阳 【github#6867】通过XMIND导入用例时,生成的用例ID与实际XMIND编排的用例顺序不符,为倒序ID,请修改 https://www.tapd.cn/55049933/s/1078804 --- .../main/java/io/metersphere/track/service/TestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index 56cc140b42..444b5eeba8 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -656,7 +656,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));