yangdamao 1 vuosi sitten
vanhempi
commit
8635119199

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -3426,6 +3426,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                                         .eq(UserStudyVideo::getStatus,1));
                                 if (ObjectUtils.isNotNull(studyVideo)){
                                     classPeriodSectionVo.setVideoUrl(studyVideo.getVideoUrl());
+                                    classPeriodSectionVo.setVideoTime(DateUtils.timestampToDateFormat(studyVideo.getCreateTime(),"yyyy-MM-dd HH:mm:ss"));
                                     classPeriodSectionVo.setVideoCurrentTime(studyVideo.getVideoCurrentTime());
                                 }
                                 sectionTotal++;
@@ -3605,6 +3606,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                             .eq(UserStudyVideo::getStatus,1));
                     if (ObjectUtils.isNotNull(studyVideo)){
                         classPeriodSectionVo.setVideoUrl(studyVideo.getVideoUrl());
+                        classPeriodSectionVo.setVideoTime(DateUtils.timestampToDateFormat(studyVideo.getCreateTime(),"yyyy-MM-dd HH:mm:ss"));
                         classPeriodSectionVo.setVideoCurrentTime(studyVideo.getVideoCurrentTime());
                     }
                     sectionTotal++;
@@ -3741,6 +3743,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                         .eq(UserStudyVideo::getStatus,1));
                 if (ObjectUtils.isNotNull(studyVideo)){
                     classPeriodVo.setVideoUrl(studyVideo.getVideoUrl());
+                    classPeriodVo.setVideoTime(DateUtils.timestampToDateFormat(studyVideo.getCreateTime(),"yyyy-MM-dd HH:mm:ss"));
                     classPeriodVo.setVideoCurrentTime(studyVideo.getVideoCurrentTime());
                 }
                 sectionTotal++;

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/vo/ClassPeriodSectionVo.java

@@ -188,6 +188,9 @@ public class ClassPeriodSectionVo implements Comparable<ClassPeriodSectionVo> {
 	@ApiModelProperty("视频地址")
 	private String videoUrl;
 
+	@ApiModelProperty("视频时间")
+	private String videoTime;
+
 	@ApiModelProperty("视频当前播放时刻")
 	private Long videoCurrentTime;
 

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/vo/ClassPeriodVo.java

@@ -224,6 +224,8 @@ public class ClassPeriodVo implements Comparable<ClassPeriodVo> {
 	private String commonGradeName;
 	@ApiModelProperty("视频地址")
 	private String videoUrl;
+	@ApiModelProperty("视频地址")
+	private String videoTime;
 
 	@ApiModelProperty("视频当前播放时刻")
 	private Long videoCurrentTime;