fix(接口测试): 修复导入接口定义时接口用例ID格式不正确的问题
This commit is contained in:
parent
6d85fd55f9
commit
f61f273a50
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue