From fe29db7a08e9da70ca3c78db27a11e48fa5f6f43 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 15 五月 2024 22:24:47 +0800 Subject: [PATCH] springboot静态文件配置。删除dist --- 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