|
|
@@ -1088,18 +1088,7 @@ public class LiveDataServiceImpl implements ILiveDataService {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
- // 查询直播间视频时长
|
|
|
- LiveVideoMapper liveVideoMapper = SpringUtils.getBean(LiveVideoMapper.class);
|
|
|
- List<LiveVideo> videos = liveVideoMapper.selectByLiveId(liveId);
|
|
|
- Long videoDuration = videos.stream()
|
|
|
- .filter(v -> v.getVideoType() != null && (v.getVideoType() == 1 || v.getVideoType() == 2))
|
|
|
- .mapToLong(v -> v.getDuration() != null ? v.getDuration() : 0L)
|
|
|
- .sum();
|
|
|
-
|
|
|
- // 根据视频时长确定完课标准 卓美
|
|
|
- // 如果视频时长大于40分钟(2400秒),30分钟(1800秒)算完课
|
|
|
- // 如果视频时长小于等于40分钟(2400秒),20分钟(1200秒)算完课
|
|
|
- long completionThreshold = (videoDuration > 2400) ? 1800 : 1200;
|
|
|
+
|
|
|
|
|
|
// 转换为导出VO列表
|
|
|
List<LiveUserDetailExportVO> exportList = new ArrayList<>();
|
|
|
@@ -1127,12 +1116,6 @@ public class LiveDataServiceImpl implements ILiveDataService {
|
|
|
exportVO.setCompanyName(userDetail.getCompanyName());
|
|
|
exportVO.setSalesName(userDetail.getSalesName());
|
|
|
|
|
|
- // 是否完课(根据视频时长动态判断完课标准)
|
|
|
- if (totalSeconds >= completionThreshold) {
|
|
|
- exportVO.setIsCompleted("是");
|
|
|
- } else {
|
|
|
- exportVO.setIsCompleted("否");
|
|
|
- }
|
|
|
|
|
|
exportList.add(exportVO);
|
|
|
}
|