refactor(工作台): 性能测试加报告数量
--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001016219
This commit is contained in:
parent
ffcbd8d7cb
commit
0854f26c79
|
@ -381,7 +381,12 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
||||||
Object propertiesResult = parseSchemaPropertiesToJson(schema, refSet, infoMap);
|
Object propertiesResult = parseSchemaPropertiesToJson(schema, refSet, infoMap);
|
||||||
return propertiesResult == null ? getDefaultValueByPropertyType(schema) : propertiesResult;
|
return propertiesResult == null ? getDefaultValueByPropertyType(schema) : propertiesResult;
|
||||||
} else {
|
} else {
|
||||||
return getDefaultValueByPropertyType(schema);
|
if (MapUtils.isNotEmpty(schema.getProperties())) {
|
||||||
|
Object propertiesResult = parseSchemaPropertiesToJson(schema, refSet, infoMap);
|
||||||
|
return propertiesResult == null ? getDefaultValueByPropertyType(schema) : propertiesResult;
|
||||||
|
} else {
|
||||||
|
return getDefaultValueByPropertyType(schema);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2155,7 +2155,7 @@ public class ApiDefinitionService {
|
||||||
if (!resList.isEmpty()) {
|
if (!resList.isEmpty()) {
|
||||||
List<String> ids = resList.stream().map(ApiDefinitionResult::getId).collect(Collectors.toList());
|
List<String> ids = resList.stream().map(ApiDefinitionResult::getId).collect(Collectors.toList());
|
||||||
List<ApiComputeResult> results = new ArrayList<>();
|
List<ApiComputeResult> results = new ArrayList<>();
|
||||||
if (request != null && request.getFilters().containsKey("status") && request.getFilters().get("status").get(0).equals("Trash")) {
|
if (request != null && MapUtils.isNotEmpty(request.getFilters()) && request.getFilters().containsKey("status") && request.getFilters().get("status").get(0).equals("Trash")) {
|
||||||
results = extApiDefinitionMapper.selectByIdsAndStatusIsTrash(ids, projectId);
|
results = extApiDefinitionMapper.selectByIdsAndStatusIsTrash(ids, projectId);
|
||||||
} else {
|
} else {
|
||||||
results = extApiDefinitionMapper.selectByIdsAndStatusIsNotTrash(ids, projectId);
|
results = extApiDefinitionMapper.selectByIdsAndStatusIsNotTrash(ids, projectId);
|
||||||
|
|
|
@ -702,7 +702,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
|
||||||
if (CollectionUtils.isNotEmpty(repeatApiDefinitionWithBLOBs)) {
|
if (CollectionUtils.isNotEmpty(repeatApiDefinitionWithBLOBs)) {
|
||||||
oldCaseMap = getOldCaseMap(repeatApiDefinitionWithBLOBs);
|
oldCaseMap = getOldCaseMap(repeatApiDefinitionWithBLOBs);
|
||||||
}
|
}
|
||||||
Map<String, ApiDefinitionWithBLOBs> repeatDataMap = null;
|
Map<String, ApiDefinitionWithBLOBs> repeatDataMap = new HashMap<>();
|
||||||
Map<String, ApiDefinitionWithBLOBs> optionMap = new HashMap<>();
|
Map<String, ApiDefinitionWithBLOBs> optionMap = new HashMap<>();
|
||||||
|
|
||||||
if (chooseModule != null) {
|
if (chooseModule != null) {
|
||||||
|
|
Loading…
Reference in New Issue