refactor(测试计划): 接口&场景pos默认值
This commit is contained in:
parent
7d67a9b258
commit
b6d7dfa9a0
|
@ -127,7 +127,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService {
|
|||
public long getNextOrder(String collectionId) {
|
||||
Long maxPos = extTestPlanApiCaseMapper.getMaxPosByCollectionId(collectionId);
|
||||
if (maxPos == null) {
|
||||
return 0;
|
||||
return DEFAULT_NODE_INTERVAL_POS;
|
||||
} else {
|
||||
return maxPos + DEFAULT_NODE_INTERVAL_POS;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ public class TestPlanApiScenarioService extends TestPlanResourceService {
|
|||
public long getNextOrder(String collectionId) {
|
||||
Long maxPos = extTestPlanApiScenarioMapper.getMaxPosByRangeId(collectionId);
|
||||
if (maxPos == null) {
|
||||
return 0;
|
||||
return DEFAULT_NODE_INTERVAL_POS;
|
||||
} else {
|
||||
return maxPos + DEFAULT_NODE_INTERVAL_POS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue