fix(接口测试): 修复导入接口定义时接口用例ID格式不正确的问题

This commit is contained in:
BugKing 2021-09-17 14:38:17 +08:00 committed by jianxing
parent d205653e61
commit 07bbd27845
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ public class ApiDefinitionService {
apiTestCase.setUpdateUserId(SessionUtils.getUserId());
if (sameCase == null) {
apiTestCase.setId(UUID.randomUUID().toString());
apiTestCase.setNum(getNextNum(apiTestCase.getApiDefinitionId()));
apiTestCase.setNum(apiTestCaseService.getNextNum(apiTestCase.getApiDefinitionId()));
apiTestCase.setCreateTime(System.currentTimeMillis());
apiTestCase.setUpdateTime(System.currentTimeMillis());
apiTestCase.setCreateUserId(SessionUtils.getUserId());