refactor(接口测试): 排序优化

This commit is contained in:
fit2-zhao 2022-02-24 12:03:36 +08:00 committed by xiaomeinvG
parent a1d5a80040
commit 7cb8e8285e
2 changed files with 1 additions and 1 deletions

View File

@ -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++) {

View File

@ -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("[")) {