fix(测试计划): 修复测试计划关联功能用例时默认pos值
This commit is contained in:
parent
ecb74fd9d4
commit
7977da1766
|
@ -59,7 +59,8 @@ public class TestPlanCaseService {
|
|||
public long getNextOrder(String testPlanId) {
|
||||
Long maxPos = extTestPlanFunctionalCaseMapper.getMaxPosByTestPlanId(testPlanId);
|
||||
if (maxPos == null) {
|
||||
return 0;
|
||||
//默认返回POS_STEP,不能直接返回0, 否则无法进行“前置”排序
|
||||
return ServiceUtils.POS_STEP;
|
||||
} else {
|
||||
return maxPos + ServiceUtils.POS_STEP;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue