fix(测试计划): 修复测试计划关联功能用例时默认pos值

This commit is contained in:
Jianguo-Genius 2024-05-20 14:48:02 +08:00 committed by Craftsman
parent ecb74fd9d4
commit 7977da1766
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}