fix(接口测试): 导入更新版本

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-07-14 17:29:56 +08:00 committed by xiaomeinvG
parent 9e07c393eb
commit d1a3b2f5d0
1 changed files with 2 additions and 2 deletions

View File

@ -1235,8 +1235,8 @@ public class ApiAutomationService {
scenarioWithBLOBs.setId(UUID.randomUUID().toString());
scenarioWithBLOBs.setCreateTime(System.currentTimeMillis());
if (scenarioWithBLOBs.getVersionId() != null && scenarioWithBLOBs.getVersionId().equals("update")) {
if (StringUtils.isNotEmpty(apiTestImportRequest.getVersionId())) {
scenarioWithBLOBs.setVersionId(apiTestImportRequest.getVersionId());
if (StringUtils.isNotEmpty(apiTestImportRequest.getUpdateVersionId())) {
scenarioWithBLOBs.setVersionId(apiTestImportRequest.getUpdateVersionId());
} else {
scenarioWithBLOBs.setVersionId(apiTestImportRequest.getDefaultVersion());
}