|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.statis.service.impl; // 假设Service实现类放在此包下
|
|
|
|
|
|
import com.fs.company.domain.CompanyUser;
|
|
|
+import com.fs.qw.mapper.QwUserMapper;
|
|
|
import com.fs.sop.domain.SopUserLogs;
|
|
|
import com.fs.statis.domain.FsStatisPeriodWatch;
|
|
|
import com.fs.statis.domain.FsStatisSalerWatch;
|
|
@@ -24,13 +25,16 @@ public class FsStatisPeriodWatchServiceImpl implements FsStatisPeriodWatchServic
|
|
|
|
|
|
private final FsStatisPeriodWatchMapper fsStatisPeriodWatchMapper;
|
|
|
|
|
|
+ private final QwUserMapper qwUserMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 通过构造函数注入Mapper
|
|
|
* @param fsStatisPeriodWatchMapper 训练营周期统计数据Mapper
|
|
|
*/
|
|
|
@Autowired
|
|
|
- public FsStatisPeriodWatchServiceImpl(FsStatisPeriodWatchMapper fsStatisPeriodWatchMapper) {
|
|
|
+ public FsStatisPeriodWatchServiceImpl(FsStatisPeriodWatchMapper fsStatisPeriodWatchMapper, QwUserMapper qwUserMapper) {
|
|
|
this.fsStatisPeriodWatchMapper = fsStatisPeriodWatchMapper;
|
|
|
+ this.qwUserMapper = qwUserMapper;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -87,16 +91,24 @@ public class FsStatisPeriodWatchServiceImpl implements FsStatisPeriodWatchServic
|
|
|
|
|
|
@Override
|
|
|
public void writeData() {
|
|
|
- LocalDate previousDay = LocalDate.now().minusDays(1);
|
|
|
-
|
|
|
- // 获取每个sop任务对应的营期记录(执行记录) 当天的记录
|
|
|
- List<String> list = fsStatisPeriodWatchMapper.selectRecords(previousDay);
|
|
|
- for (String id : list) {
|
|
|
- // 根据sop营期id 获取当前任务的企微id列表
|
|
|
-
|
|
|
- // 转换企微id列表为对应的销售
|
|
|
-
|
|
|
- }
|
|
|
+// LocalDate previousDay = LocalDate.now().minusDays(1);
|
|
|
+//
|
|
|
+// // 获取每个sop任务
|
|
|
+// List<SopUserLogs> list = fsStatisPeriodWatchMapper.selectRecords(previousDay);
|
|
|
+// for (SopUserLogs logs : list) {
|
|
|
+// // 根据sop任务营期id 获取当前任务的企微id列表
|
|
|
+// String qwUserId = logs.getQwUserId();
|
|
|
+// // 转换企微id列表为对应的销售
|
|
|
+// Long companyUserId = qwUserMapper.selectCompanyIdByQwUserId(qwUserId);
|
|
|
+// FsStatisPeriodWatch fsStatisPeriodWatch = new FsStatisPeriodWatch();
|
|
|
+// fsStatisPeriodWatch.setPeriodId(logs.getId());
|
|
|
+// fsStatisPeriodWatch.setDataDate(previousDay);
|
|
|
+//
|
|
|
+// // 获取当前的训练营人数
|
|
|
+//
|
|
|
+//
|
|
|
+// // for 获取
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
}
|