|
@@ -1,5 +1,7 @@
|
|
package com.fs.statis.service.impl;
|
|
package com.fs.statis.service.impl;
|
|
|
|
|
|
|
|
+import com.fs.company.domain.CompanyUser;
|
|
|
|
+import com.fs.company.mapper.CompanyUserMapper;
|
|
import com.fs.statis.domain.FsStatisSalerWatch;
|
|
import com.fs.statis.domain.FsStatisSalerWatch;
|
|
import com.fs.statis.dto.StatsWatchLogPageListDTO;
|
|
import com.fs.statis.dto.StatsWatchLogPageListDTO;
|
|
import com.fs.statis.mapper.FsStatisSalerWatchMapper;
|
|
import com.fs.statis.mapper.FsStatisSalerWatchMapper;
|
|
@@ -7,7 +9,6 @@ import com.fs.statis.service.FsStatisSalerWatchService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -18,9 +19,12 @@ public class FsStatisSalerWatchServiceImpl implements FsStatisSalerWatchService
|
|
|
|
|
|
private final FsStatisSalerWatchMapper fsStatisSalerWatchMapper;
|
|
private final FsStatisSalerWatchMapper fsStatisSalerWatchMapper;
|
|
|
|
|
|
|
|
+ private final CompanyUserMapper companyUserMapper;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
- public FsStatisSalerWatchServiceImpl(FsStatisSalerWatchMapper fsStatisSalerWatchMapper) {
|
|
|
|
|
|
+ public FsStatisSalerWatchServiceImpl(FsStatisSalerWatchMapper fsStatisSalerWatchMapper, CompanyUserMapper companyUserMapper) {
|
|
this.fsStatisSalerWatchMapper = fsStatisSalerWatchMapper;
|
|
this.fsStatisSalerWatchMapper = fsStatisSalerWatchMapper;
|
|
|
|
+ this.companyUserMapper = companyUserMapper;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -86,4 +90,15 @@ public class FsStatisSalerWatchServiceImpl implements FsStatisSalerWatchService
|
|
public List<FsStatisSalerWatch> queryList(StatsWatchLogPageListDTO param) {
|
|
public List<FsStatisSalerWatch> queryList(StatsWatchLogPageListDTO param) {
|
|
return fsStatisSalerWatchMapper.queryList(param);
|
|
return fsStatisSalerWatchMapper.queryList(param);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void writeData() {
|
|
|
|
+ // 统计销售看课情况
|
|
|
|
+ // 获取前一天的时间
|
|
|
|
+ List<CompanyUser> companyUserList = this.companyUserMapper.selectAllCompanyUserList();
|
|
|
|
+
|
|
|
|
+ for (CompanyUser companyUser : companyUserList) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|