|
@@ -2,6 +2,7 @@ package com.fs.store.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
|
+import com.fs.course.mapper.FsCourseWatchLogMapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.fs.store.mapper.FsUserCourseCountMapper;
|
|
@@ -10,19 +11,22 @@ import com.fs.store.service.IFsUserCourseCountService;
|
|
|
|
|
|
/**
|
|
|
* 用户看课统计Service业务层处理
|
|
|
- *
|
|
|
+ *
|
|
|
* @author fs
|
|
|
* @date 2025-04-02
|
|
|
*/
|
|
|
@Service
|
|
|
-public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
+public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
{
|
|
|
@Autowired
|
|
|
private FsUserCourseCountMapper fsUserCourseCountMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FsCourseWatchLogMapper fsCourseWatchLogMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 查询用户看课统计
|
|
|
- *
|
|
|
+ *
|
|
|
* @param id 用户看课统计ID
|
|
|
* @return 用户看课统计
|
|
|
*/
|
|
@@ -34,7 +38,7 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
|
|
|
/**
|
|
|
* 查询用户看课统计列表
|
|
|
- *
|
|
|
+ *
|
|
|
* @param fsUserCourseCount 用户看课统计
|
|
|
* @return 用户看课统计
|
|
|
*/
|
|
@@ -46,7 +50,7 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
|
|
|
/**
|
|
|
* 新增用户看课统计
|
|
|
- *
|
|
|
+ *
|
|
|
* @param fsUserCourseCount 用户看课统计
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -59,7 +63,7 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
|
|
|
/**
|
|
|
* 修改用户看课统计
|
|
|
- *
|
|
|
+ *
|
|
|
* @param fsUserCourseCount 用户看课统计
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -72,7 +76,7 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
|
|
|
/**
|
|
|
* 批量删除用户看课统计
|
|
|
- *
|
|
|
+ *
|
|
|
* @param ids 需要删除的用户看课统计ID
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -84,7 +88,7 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
|
|
|
/**
|
|
|
* 删除用户看课统计信息
|
|
|
- *
|
|
|
+ *
|
|
|
* @param id 用户看课统计ID
|
|
|
* @return 结果
|
|
|
*/
|
|
@@ -93,4 +97,16 @@ public class FsUserCourseCountServiceImpl implements IFsUserCourseCountService
|
|
|
{
|
|
|
return fsUserCourseCountMapper.deleteFsUserCourseCountById(id);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void insertFsUserCourseCountTask() {
|
|
|
+ // 1、获取统计结果
|
|
|
+ // todo
|
|
|
+
|
|
|
+
|
|
|
+ // 2、分批插入数据
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
}
|