From 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 14 五月 2025 15:50:57 +0800
Subject: [PATCH] bug:学员有状态不能修改问题
---
src/main/java/com/mindskip/xzs/service/impl/VideoServiceImpl.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mindskip/xzs/service/impl/VideoServiceImpl.java b/src/main/java/com/mindskip/xzs/service/impl/VideoServiceImpl.java
index c5f20c3..0bdaeb3 100644
--- a/src/main/java/com/mindskip/xzs/service/impl/VideoServiceImpl.java
+++ b/src/main/java/com/mindskip/xzs/service/impl/VideoServiceImpl.java
@@ -2,12 +2,14 @@
import com.mindskip.xzs.domain.VideoStudent;
import com.mindskip.xzs.domain.vo.VideoStudentDto;
+import com.mindskip.xzs.domain.vo.VideoStudentListVO;
import com.mindskip.xzs.domain.vo.VideoStudentVO;
import com.mindskip.xzs.repository.VideoMapper;
import com.mindskip.xzs.service.IVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
@@ -56,4 +58,18 @@
videoStudentVO.setRoomName(all.get(0).getRoomName());
return videoStudentVO;
}
+
+ @Override
+ public List<VideoStudentListVO> getStudentVideoList() {
+ List<String> studentList = videoMapper.getStudentList();
+ ArrayList<VideoStudentListVO> list = new ArrayList<>();
+ for (String s : studentList) {
+ VideoStudentListVO videoStudentListVO = new VideoStudentListVO();
+ videoStudentListVO.setCreateTime(new Date());
+ videoStudentListVO.setTeacherName(s);
+ videoStudentListVO.setRoomName(s);
+ list.add(videoStudentListVO);
+ }
+ return list;
+ }
}
--
Gitblit v1.8.0