fix: 导入场景默认最新版本
This commit is contained in:
parent
e43c11a70e
commit
10ca1653a3
|
@ -1189,6 +1189,9 @@ public class ApiAutomationService {
|
||||||
if (StringUtils.isBlank(item.getId())) {
|
if (StringUtils.isBlank(item.getId())) {
|
||||||
item.setId(UUID.randomUUID().toString());
|
item.setId(UUID.randomUUID().toString());
|
||||||
}
|
}
|
||||||
|
// 导入时设置版本
|
||||||
|
item.setVersionId(extProjectVersionMapper.getDefaultVersion(project.getId()));
|
||||||
|
item.setRefId(item.getId());
|
||||||
importCreate(item, batchMapper, request);
|
importCreate(item, batchMapper, request);
|
||||||
if (i % 300 == 0) {
|
if (i % 300 == 0) {
|
||||||
sqlSession.flushStatements();
|
sqlSession.flushStatements();
|
||||||
|
|
Loading…
Reference in New Issue