Parcourir la source

是否完课删除

yuhongqi il y a 15 heures
Parent
commit
71b1fb7060

+ 1 - 18
fs-service/src/main/java/com/fs/live/service/impl/LiveDataServiceImpl.java

@@ -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);
         }

+ 1 - 1
fs-service/src/main/java/com/fs/live/vo/LiveUserDetailExportVO.java

@@ -49,7 +49,7 @@ public class LiveUserDetailExportVO {
     private String salesName;
 
     /** 是否完课 */
-    @Excel(name = "是否完课")
+//    @Excel(name = "是否完课")
     private String isCompleted;
 
 }