refactor(性能测试): 每天定时清理已经执行完成的测试中间数据

This commit is contained in:
Captain.B 2021-02-04 15:23:34 +08:00
parent bbbdb63b21
commit b96c602842
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class LoadTestReportDetailCleanJob {
* 每天处理一次清理任务 * 每天处理一次清理任务
*/ */
@QuartzScheduled(cron = "0 0 1 * * ?") @QuartzScheduled(cron = "0 0 1 * * ?")
public void test() { public void cleanCompletedTestDetail() {
LoadTestReportExample example = new LoadTestReportExample(); LoadTestReportExample example = new LoadTestReportExample();
example.createCriteria().andStatusEqualTo(PerformanceTestStatus.Completed.name()); example.createCriteria().andStatusEqualTo(PerformanceTestStatus.Completed.name());
List<LoadTestReport> loadTestReports = loadTestReportMapper.selectByExample(example); List<LoadTestReport> loadTestReports = loadTestReportMapper.selectByExample(example);