This commit is contained in:
chenjianxing 2020-07-23 10:12:53 +08:00
commit 55a2a96da3
1 changed files with 2 additions and 2 deletions

View File

@ -207,14 +207,14 @@ public class ReportService {
public List<LoadTestReportLog> getReportLogs(String reportId, String resourceId) {
LoadTestReportLogExample example = new LoadTestReportLogExample();
example.createCriteria().andReportIdEqualTo(reportId).andResourceIdEqualTo(resourceId);
example.setOrderByClause("part desc");
example.setOrderByClause("part");
return loadTestReportLogMapper.selectByExampleWithBLOBs(example);
}
public List<String> downloadLog(String reportId, String resourceId) {
LoadTestReportLogExample example = new LoadTestReportLogExample();
example.createCriteria().andReportIdEqualTo(reportId).andResourceIdEqualTo(resourceId);
example.setOrderByClause("part desc");
example.setOrderByClause("part");
List<LoadTestReportLog> loadTestReportLogs = loadTestReportLogMapper.selectByExampleWithBLOBs(example);
return loadTestReportLogs.stream().map(LoadTestReportLog::getContent).collect(Collectors.toList());