refactor(接口管理): 场景导入查询数据增加跨项目数据

This commit is contained in:
guoyuqi 2024-10-11 19:13:56 +08:00 committed by Craftsman
parent 1937665cea
commit e8a4a2e9e6
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class ApiScenarioSelectAssociateService {
step.setResourceId(item.getId()); step.setResourceId(item.getId());
step.setRefType(request.getRefType()); step.setRefType(request.getRefType());
step.setProjectId(item.getProjectId()); step.setProjectId(item.getProjectId());
step.setOriginProjectId(item.getProjectId());
step.setResourceNum(item.getNum().toString()); step.setResourceNum(item.getNum().toString());
step.setVersionId(item.getVersionId()); step.setVersionId(item.getVersionId());
steps.add(step); steps.add(step);
@ -158,6 +159,7 @@ public class ApiScenarioSelectAssociateService {
step.setResourceId(item.getId()); step.setResourceId(item.getId());
step.setRefType(request.getRefType()); step.setRefType(request.getRefType());
step.setProjectId(item.getProjectId()); step.setProjectId(item.getProjectId());
step.setOriginProjectId(item.getProjectId());
step.setResourceNum(item.getNum().toString()); step.setResourceNum(item.getNum().toString());
step.setVersionId(item.getVersionId()); step.setVersionId(item.getVersionId());
steps.add(step); steps.add(step);
@ -243,6 +245,7 @@ public class ApiScenarioSelectAssociateService {
step.setResourceId(apiScenario.getId()); step.setResourceId(apiScenario.getId());
step.setRefType(request.getRefType()); step.setRefType(request.getRefType());
step.setProjectId(apiScenario.getProjectId()); step.setProjectId(apiScenario.getProjectId());
step.setOriginProjectId(apiScenario.getProjectId());
step.setResourceNum(apiScenario.getNum().toString()); step.setResourceNum(apiScenario.getNum().toString());
step.setVersionId(apiScenario.getVersionId()); step.setVersionId(apiScenario.getVersionId());
step.setChildren(stepList); step.setChildren(stepList);