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