|
@@ -3,6 +3,7 @@ package com.fs.task;
|
|
|
import com.fs.course.domain.FsCourseWatchLog;
|
|
import com.fs.course.domain.FsCourseWatchLog;
|
|
|
import com.fs.course.service.IFsCourseAnswerLogsService;
|
|
import com.fs.course.service.IFsCourseAnswerLogsService;
|
|
|
import com.fs.course.service.IFsCourseRedPacketLogService;
|
|
import com.fs.course.service.IFsCourseRedPacketLogService;
|
|
|
|
|
+import com.fs.course.service.IFsCourseTrafficLogService;
|
|
|
import com.fs.course.service.IFsCourseWatchLogService;
|
|
import com.fs.course.service.IFsCourseWatchLogService;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -28,6 +29,9 @@ public class FsCourseBackupTask {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsCourseRedPacketLogService fsCourseRedPacketLogService;
|
|
private IFsCourseRedPacketLogService fsCourseRedPacketLogService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsCourseTrafficLogService courseTrafficLogService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 备份看课记录
|
|
* 备份看课记录
|
|
|
*/
|
|
*/
|
|
@@ -42,10 +46,19 @@ public class FsCourseBackupTask {
|
|
|
fsCourseAnswerLogsService.backupAnswerLog();
|
|
fsCourseAnswerLogsService.backupAnswerLog();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 备份红包记录
|
|
* 备份红包记录
|
|
|
*/
|
|
*/
|
|
|
public void backupRedPacketLog(){
|
|
public void backupRedPacketLog(){
|
|
|
fsCourseRedPacketLogService.backupRedPacketLog();
|
|
fsCourseRedPacketLogService.backupRedPacketLog();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 删除流量数据
|
|
|
|
|
+ */
|
|
|
|
|
+ public void batchDelTraffic() {
|
|
|
|
|
+ courseTrafficLogService.batchDelTraffic();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|