refactor(项目管理): 环境参数类型去掉对象
This commit is contained in:
parent
1e71f6439d
commit
d3ebbd9f8b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -101,10 +101,10 @@
|
|||
label: t('common.list'),
|
||||
value: 'LIST',
|
||||
},
|
||||
{
|
||||
/* {
|
||||
label: t('common.json'),
|
||||
value: 'JSON',
|
||||
},
|
||||
}, */
|
||||
],
|
||||
titleSlotName: 'typeTitle',
|
||||
typeTitleTooltip: t('project.environmental.paramTypeTooltip'),
|
||||
|
|
Loading…
Reference in New Issue