fix: 修复下载性能测试日志的排序问题

This commit is contained in:
Captain.B 2020-07-22 16:16:59 +08:00
parent 2660ebb975
commit 90489ae2a3
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ public class ReportService {
public byte[] downloadLog(String reportId, String resourceId) {
LoadTestReportLogExample example = new LoadTestReportLogExample();
example.createCriteria().andReportIdEqualTo(reportId).andResourceIdEqualTo(resourceId);
example.setOrderByClause("part desc");
List<LoadTestReportLog> loadTestReportLogs = loadTestReportLogMapper.selectByExampleWithBLOBs(example);
String content = loadTestReportLogs.stream().map(LoadTestReportLog::getContent).reduce("", (a, b) -> a + b);