|
@@ -99,6 +99,7 @@ public class RoomController{
|
|
if(notify.getEvent() == 12 || notify.getEvent() == 3){
|
|
if(notify.getEvent() == 12 || notify.getEvent() == 3){
|
|
// result = roomService.statusSync(notify.getChannelId(), notify.getUserId());
|
|
// result = roomService.statusSync(notify.getChannelId(), notify.getUserId());
|
|
}else if(notify.getEvent() == 11){
|
|
}else if(notify.getEvent() == 11){
|
|
|
|
+ roomService.startRecord(notify.getChannelId());
|
|
// Teacher teacher = teacherDao.get(Integer.parseInt(notify.getUserId()));
|
|
// Teacher teacher = teacherDao.get(Integer.parseInt(notify.getUserId()));
|
|
// Long roomId = Long.parseLong(notify.getChannelId().substring(1));
|
|
// Long roomId = Long.parseLong(notify.getChannelId().substring(1));
|
|
// CourseSchedule courseSchedule = courseScheduleDao.get(roomId);
|
|
// CourseSchedule courseSchedule = courseScheduleDao.get(roomId);
|
|
@@ -199,6 +200,19 @@ public class RoomController{
|
|
return new BaseResponse<>(result);
|
|
return new BaseResponse<>(result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 屏蔽指定学员
|
|
|
|
+ * @param data
|
|
|
|
+ * @return
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "/shieldStudent", method = RequestMethod.POST)
|
|
|
|
+ public Object shieldStudent(@RequestBody ReqDeviceControlData data)throws Exception {
|
|
|
|
+ log.info("batchControl: {}",JSONObject.toJSON(data));
|
|
|
|
+ boolean result = roomService.batchControlDevice(data);
|
|
|
|
+ return new BaseResponse<>(result);
|
|
|
|
+ }
|
|
|
|
+
|
|
@RequestMapping(value = "/device/batchControl", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/device/batchControl", method = RequestMethod.POST)
|
|
public Object batchControlDevice(@RequestBody ReqDeviceControlData data)throws Exception {
|
|
public Object batchControlDevice(@RequestBody ReqDeviceControlData data)throws Exception {
|
|
log.info("batchControl: {}",JSONObject.toJSON(data));
|
|
log.info("batchControl: {}",JSONObject.toJSON(data));
|