refactor(接口测试): 排序优化
This commit is contained in:
parent
a1d5a80040
commit
7cb8e8285e
|
@ -282,6 +282,7 @@ public class ApiScenarioReportStructureService {
|
|||
private List<ApiDefinitionExecResultVo> formatApiReport(String reportId, List<StepTreeDTO> stepList) {
|
||||
ApiDefinitionExecResultExample example = new ApiDefinitionExecResultExample();
|
||||
example.createCriteria().andIntegratedReportIdEqualTo(reportId);
|
||||
example.setOrderByClause("end_time desc");
|
||||
List<ApiDefinitionExecResult> reportResults = definitionExecResultMapper.selectByExampleWithBLOBs(example);
|
||||
List<ApiDefinitionExecResultVo> resultVos = new LinkedList<>();
|
||||
for (int i = 0; i < reportResults.size(); i++) {
|
||||
|
|
|
@ -37,7 +37,6 @@ public class OperatingLogService {
|
|||
public void create(OperatingLogWithBLOBs log, String sourceIds) {
|
||||
log.setSourceId("");
|
||||
operatingLogMapper.insert(log);
|
||||
System.out.println(JSON.toJSONString(log));
|
||||
if (StringUtils.isNotEmpty(sourceIds)) {
|
||||
List<String> ids = new ArrayList<>();
|
||||
if (sourceIds.startsWith("[")) {
|
||||
|
|
Loading…
Reference in New Issue