|
@@ -7,11 +7,15 @@ import com.fs.qw.service.IQwUserService;
|
|
|
import com.fs.sop.service.impl.QwSopLogsServiceImpl;
|
|
|
import com.fs.sop.service.impl.QwSopServiceImpl;
|
|
|
import com.fs.sop.service.ISopUserLogsService;
|
|
|
+import com.fs.statis.IFsStatisQwWatchService;
|
|
|
+import com.fs.statis.service.FsStatisSalerWatchService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
+
|
|
|
@Component("qwTask")
|
|
|
public class qwTask {
|
|
|
|
|
@@ -35,6 +39,13 @@ public class qwTask {
|
|
|
@Autowired
|
|
|
private IQwUserService qwUserService;
|
|
|
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FsStatisSalerWatchService fsStatisSalerWatchService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsStatisQwWatchService fsStatisQwWatchService;
|
|
|
+
|
|
|
//正在使用
|
|
|
public void qwExternalContact()
|
|
|
{
|
|
@@ -131,4 +142,50 @@ public class qwTask {
|
|
|
public void unlockQwUserLoginCodeUrlTask(){
|
|
|
qwUserService.unlockQwUserLoginCodeUrlTask();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 看课统计
|
|
|
+ */
|
|
|
+ public void watchCourseStatis(String date){
|
|
|
+ if("1".equals(date)){
|
|
|
+ fsStatisSalerWatchService.writeData(null);
|
|
|
+ } else {
|
|
|
+ fsStatisSalerWatchService.writeData(date);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 看课统计昨天
|
|
|
+ */
|
|
|
+ public void watchCourseStatisPrevious(){
|
|
|
+ LocalDate localDate = LocalDate.now().minusDays(1);
|
|
|
+ fsStatisSalerWatchService.writeData(localDate.toString());
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 看课统计-统计当天的-每15分钟统计一次
|
|
|
+ */
|
|
|
+ public void watchCourseStatisToday(){
|
|
|
+ fsStatisSalerWatchService.writeDataToday();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 进线转化统计
|
|
|
+ */
|
|
|
+ public void qwWatchCourseStatis(String date){
|
|
|
+ if("1".equals(date)){
|
|
|
+ fsStatisQwWatchService.writeData(null);
|
|
|
+ } else {
|
|
|
+ fsStatisQwWatchService.writeData(date);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 进线转化统计
|
|
|
+ */
|
|
|
+ public void qwWatchCourseStatisToday(){
|
|
|
+ LocalDate today = LocalDate.now();
|
|
|
+ fsStatisQwWatchService.writeData(today.toString());
|
|
|
+ }
|
|
|
+
|
|
|
}
|