|
@@ -3,10 +3,11 @@ package com.yonge.cooleshow.teacher.task;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.TeacherTotal;
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
|
+import com.yonge.cooleshow.biz.dal.service.LiveRoomService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.TeacherTotalService;
|
|
|
import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -29,6 +30,9 @@ public class TaskController extends BaseController {
|
|
|
private CourseGroupService courseGroupService;
|
|
|
@Autowired
|
|
|
private CourseScheduleService scheduleService;
|
|
|
+ @Autowired
|
|
|
+ private LiveRoomService liveRoomService;
|
|
|
+
|
|
|
|
|
|
/***
|
|
|
* 查询所有老师统计数据
|
|
@@ -46,11 +50,17 @@ public class TaskController extends BaseController {
|
|
|
* <p>定时将符合结束售卖日期的在售卖中的直播课课程组修改为取消或者成课状态状态-每隔10分钟执行一次
|
|
|
*/
|
|
|
@GetMapping("/opsCourseGroup")
|
|
|
- public HttpResponseResult<Object> opsCourseGroup(){
|
|
|
+ public HttpResponseResult<Object> opsCourseGroup() {
|
|
|
courseGroupService.opsCourseGroup();
|
|
|
return HttpResponseResult.succeed();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("定时任务-销毁房间-直播间")
|
|
|
+ @GetMapping("/destroyExpiredLiveRoom")
|
|
|
+ public void destroyExpiredLiveRoom() {
|
|
|
+ liveRoomService.destroyExpiredLiveRoom();
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/getRedisValueByKey")
|
|
|
public HttpResponseResult<Object> getRedisValueByKey(String key) {
|
|
|
return succeed(teacherTotalService.getRedisValueByKey(key));
|