refactor(项目管理): 环境参数类型去掉对象

This commit is contained in:
wxg0103 2024-03-25 13:57:27 +08:00 committed by Craftsman
parent 1e71f6439d
commit d3ebbd9f8b
5 changed files with 6 additions and 6 deletions

View File

@ -238,7 +238,7 @@ public class ApiReportService {
apiReportDetailExample.createCriteria().andStepIdEqualTo(stepId).andReportIdEqualTo(reportId);
List<ApiReportDetail> apiReportDetails = apiReportDetailMapper.selectByExampleWithBLOBs(apiReportDetailExample);
if (CollectionUtils.isEmpty(apiReportDetails)) {
throw new MSException(Translator.get("api_case_report_not_exist"));
return new ArrayList<>();
}
return apiReportDetails;
}

View File

@ -268,7 +268,7 @@ public class ApiScenarioReportService {
detailExample.createCriteria().andStepIdEqualTo(stepId).andReportIdEqualTo(reportId);
List<ApiScenarioReportDetail> apiReportDetails = apiScenarioReportDetailMapper.selectByExampleWithBLOBs(detailExample);
if (CollectionUtils.isEmpty(apiReportDetails)) {
throw new MSException(Translator.get("api_case_report_not_exist"));
return new ArrayList<>();
}
return apiReportDetails;
}

View File

@ -411,7 +411,7 @@ public class ApiReportControllerTests extends BaseTest {
mockMvc.perform(getRequestBuilder(DETAIL + "test" + "/test"))
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(status().is5xxServerError());
.andExpect(status().isOk());
mockMvc.perform(getRequestBuilder(DETAIL + "api-report-id10"))
.andExpect(content().contentType(MediaType.APPLICATION_JSON))

View File

@ -373,7 +373,7 @@ public class ApiScenarioReportControllerTests extends BaseTest {
mockMvc.perform(getRequestBuilder(DETAIL + "test" + "/" + "test"))
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(status().is5xxServerError());
.andExpect(status().isOk());
mockMvc.perform(getRequestBuilder(DETAIL + "api-report-id10"))
.andExpect(content().contentType(MediaType.APPLICATION_JSON))

View File

@ -101,10 +101,10 @@
label: t('common.list'),
value: 'LIST',
},
{
/* {
label: t('common.json'),
value: 'JSON',
},
}, */
],
titleSlotName: 'typeTitle',
typeTitleTooltip: t('project.environmental.paramTypeTooltip'),