fix: 导入场景默认最新版本

This commit is contained in:
CaptainB 2021-12-29 11:13:17 +08:00 committed by 刘瑞斌
parent e43c11a70e
commit 10ca1653a3
1 changed files with 3 additions and 0 deletions

View File

@ -1189,6 +1189,9 @@ public class ApiAutomationService {
if (StringUtils.isBlank(item.getId())) {
item.setId(UUID.randomUUID().toString());
}
// 导入时设置版本
item.setVersionId(extProjectVersionMapper.getDefaultVersion(project.getId()));
item.setRefId(item.getId());
importCreate(item, batchMapper, request);
if (i % 300 == 0) {
sqlSession.flushStatements();