|
@@ -2,6 +2,7 @@ package com.xhkjedu.sclass.service.classroom;
|
2
|
2
|
|
3
|
3
|
import com.alibaba.fastjson.JSON;
|
4
|
4
|
import com.xhkjedu.sclass.mapper.classroom.*;
|
|
5
|
+import com.xhkjedu.sclass.mapper.system.UserMapper;
|
5
|
6
|
import com.xhkjedu.sclass.model.classroom.*;
|
6
|
7
|
import com.xhkjedu.sclass.utils.ArithUtil;
|
7
|
8
|
import com.xhkjedu.sclass.vo.classroom.*;
|
|
@@ -9,6 +10,7 @@ import com.xhkjedu.sclass.vo.paper.CheckClassVo;
|
9
|
10
|
import com.xhkjedu.sclass.vo.room.RoomParamVo;
|
10
|
11
|
import com.xhkjedu.utils.N_Utils;
|
11
|
12
|
import com.xhkjedu.vo.ResultVo;
|
|
13
|
+import com.xhkjedu.vo.system.UserVo;
|
12
|
14
|
import lombok.extern.slf4j.Slf4j;
|
13
|
15
|
import org.springframework.dao.DuplicateKeyException;
|
14
|
16
|
import org.springframework.stereotype.Service;
|
|
@@ -51,6 +53,8 @@ public class ClassroomService {
|
51
|
53
|
private ClassroomFileMapper classroomFileMapper;
|
52
|
54
|
@Resource
|
53
|
55
|
private ClassroomVideoMapper classroomVideoMapper;
|
|
56
|
+ @Resource
|
|
57
|
+ private UserMapper userMapper;
|
54
|
58
|
|
55
|
59
|
/**
|
56
|
60
|
* 开始课堂
|
|
@@ -407,7 +411,8 @@ public class ClassroomService {
|
407
|
411
|
* @Date 2020/6/15 9:19
|
408
|
412
|
**/
|
409
|
413
|
public List<Map> listClassByDirectorId(TClassroom room) {
|
410
|
|
- List<Map> rooms = classroomMapper.listClassByDirectorId(room);
|
|
414
|
+ UserVo userVo = userMapper.getUserInfoForHandleLog(room.getTeacherid());
|
|
415
|
+ List<Map> rooms = classroomMapper.listClassByDirectorId(room,userVo);
|
411
|
416
|
classRoomForList(rooms,1);
|
412
|
417
|
return rooms;
|
413
|
418
|
}
|