fix: --bug=1006969 --user=陈建星 【github#6529】在同一个meter sphere不同工作空间,不能存在同一个场景 https://www.tapd.cn/55049933/s/1052834

This commit is contained in:
chenjianxing 2021-09-28 17:12:13 +08:00 committed by jianxing
parent 1b745d5c5b
commit 7c63b60b97
1 changed files with 1 additions and 0 deletions

View File

@ -1860,6 +1860,7 @@ public class ApiAutomationService {
List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenarioWithBLOBs); List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenarioWithBLOBs);
scenarioWithBLOBs.setUseUrl(JSONArray.toJSONString(useUrl)); scenarioWithBLOBs.setUseUrl(JSONArray.toJSONString(useUrl));
scenarioWithBLOBs.setOrder(getImportNextOrder(request.getProjectId())); scenarioWithBLOBs.setOrder(getImportNextOrder(request.getProjectId()));
scenarioWithBLOBs.setId(UUID.randomUUID().toString());
batchMapper.insert(scenarioWithBLOBs); batchMapper.insert(scenarioWithBLOBs);
apiScenarioReferenceIdService.saveByApiScenario(scenarioWithBLOBs); apiScenarioReferenceIdService.saveByApiScenario(scenarioWithBLOBs);
} }