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

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

View File

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