|
|
@@ -37,10 +37,7 @@ import com.fs.his.mapper.FsUserMapper;
|
|
|
import com.fs.his.service.IFsUserService;
|
|
|
import com.fs.his.utils.ConfigUtil;
|
|
|
import com.fs.his.utils.PhoneUtil;
|
|
|
-import com.fs.his.vo.AppCourseReportVO;
|
|
|
-import com.fs.his.vo.AppSalesWatchLogReportVO;
|
|
|
-import com.fs.his.vo.AppWatchLogReportVO;
|
|
|
-import com.fs.his.vo.WatchLogReportVO;
|
|
|
+import com.fs.his.vo.*;
|
|
|
import com.fs.qw.Bean.MsgBean;
|
|
|
import com.fs.qw.cache.IQwExternalContactCacheService;
|
|
|
import com.fs.qw.cache.IQwUserCacheService;
|
|
|
@@ -90,6 +87,8 @@ import java.util.concurrent.Executors;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static com.github.pagehelper.page.PageMethod.startPage;
|
|
|
+
|
|
|
/**
|
|
|
* 短链课程看课记录Service业务层处理
|
|
|
*
|
|
|
@@ -101,6 +100,11 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
|
private static final Logger log = LoggerFactory.getLogger(FsCourseWatchLogServiceImpl.class);
|
|
|
@Autowired
|
|
|
private FsCourseWatchLogMapper fsCourseWatchLogMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FsCourseAnswerLogsMapper fsCourseAnswerLogsMapper;
|
|
|
+ @Autowired
|
|
|
+ private FsCourseRedPacketLogMapper fsCourseRedPacketLogMapper;
|
|
|
@Autowired
|
|
|
private SopUserLogsMapper sopUserLogsMapper;
|
|
|
|
|
|
@@ -1514,7 +1518,7 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
|
pageNum, queryLog.getBeginTime(), queryLog.getEndTime());
|
|
|
|
|
|
// 使用分页查询
|
|
|
- PageHelper.startPage(pageNum, pageSize);
|
|
|
+ startPage(pageNum, pageSize);
|
|
|
List<FsCourseWatchLog> fsCourseWatchLogs = fsCourseWatchLogMapper.selectFsCourseWatchLogList(queryLog);
|
|
|
|
|
|
if (fsCourseWatchLogs == null || fsCourseWatchLogs.isEmpty()) {
|
|
|
@@ -1873,6 +1877,35 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description: app 看课统计
|
|
|
+ * @Param:
|
|
|
+ * @Return:
|
|
|
+ * @Author xgb
|
|
|
+ * @Date 2026/3/23 16:10
|
|
|
+ */
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<AppSalesCourseStatisticsVO> selectAppSalesCourseStatisticsVO(FsCourseWatchLogStatisticsListParam param) {
|
|
|
+
|
|
|
+ // 课程统计
|
|
|
+ List<AppSalesCourseStatisticsVO> list = fsCourseWatchLogMapper.selectAppSalesCourseStatisticsVO(param);
|
|
|
+
|
|
|
+ // 答题统计
|
|
|
+ List<AppSalesCourseStatisticsVO> answerList = fsCourseAnswerLogsMapper.selectAppSalesAnswerStatisticsVO(param);
|
|
|
+
|
|
|
+ // 红包统计
|
|
|
+ List<AppSalesCourseStatisticsVO> redPacketList = fsCourseRedPacketLogMapper.selectAppSalesRedPacketStatisticsVO(param);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 销售维度APP看课统计报表
|
|
|
*/
|