refactor(测试计划): 接口&场景pos默认值

This commit is contained in:
WangXu10 2024-06-17 15:44:58 +08:00 committed by Craftsman
parent 7d67a9b258
commit b6d7dfa9a0
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService {
public long getNextOrder(String collectionId) { public long getNextOrder(String collectionId) {
Long maxPos = extTestPlanApiCaseMapper.getMaxPosByCollectionId(collectionId); Long maxPos = extTestPlanApiCaseMapper.getMaxPosByCollectionId(collectionId);
if (maxPos == null) { if (maxPos == null) {
return 0; return DEFAULT_NODE_INTERVAL_POS;
} else { } else {
return maxPos + DEFAULT_NODE_INTERVAL_POS; return maxPos + DEFAULT_NODE_INTERVAL_POS;
} }

View File

@ -121,7 +121,7 @@ public class TestPlanApiScenarioService extends TestPlanResourceService {
public long getNextOrder(String collectionId) { public long getNextOrder(String collectionId) {
Long maxPos = extTestPlanApiScenarioMapper.getMaxPosByRangeId(collectionId); Long maxPos = extTestPlanApiScenarioMapper.getMaxPosByRangeId(collectionId);
if (maxPos == null) { if (maxPos == null) {
return 0; return DEFAULT_NODE_INTERVAL_POS;
} else { } else {
return maxPos + DEFAULT_NODE_INTERVAL_POS; return maxPos + DEFAULT_NODE_INTERVAL_POS;
} }