| 
					
				 | 
			
			
				@@ -59,6 +59,7 @@ import java.time.LocalDateTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Collections; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.TimeUnit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.atomic.AtomicInteger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.concurrent.atomic.AtomicLong; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -961,11 +962,11 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String durationCurrent = redisCache.getCacheObject(redisKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //3、获取看课记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FsCourseWatchLog watchLog = courseWatchLogMapper.getWatchLogByFsUser(param.getVideoId(), param.getFsUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FsCourseWatchLog watchLog = courseWatchLogMapper.getWatchLogByFsUser(param.getVideoId(), param.getFsUserId(), param.getCompanyUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (durationCurrent != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             duration = Long.parseLong(durationCurrent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            duration = watchLog.getDuration(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            duration = Objects.isNull(watchLog) ? 0 : watchLog.getDuration(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        if (course.getDuration()!=null){ 
			 |