|
@@ -4,6 +4,7 @@ import com.yonge.cooleshow.biz.dal.dto.search.HomeworkAdminSearch;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseHomeworkService;
|
|
|
+import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
|
import com.yonge.cooleshow.biz.dal.support.PageUtil;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CourseHomeworkDetailVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CourseHomeworkVo;
|
|
@@ -26,6 +27,8 @@ public class CourseHomeworkController extends BaseController {
|
|
|
@Autowired
|
|
|
private CourseHomeworkService courseHomeworkService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseScheduleService courseScheduleService;
|
|
|
|
|
|
@ApiOperation(value = "课后作业-列表", httpMethod = "POST", consumes = "application/json", produces = "application/json")
|
|
|
@PostMapping(value = "/list", consumes = "application/json", produces = "application/json")
|
|
@@ -43,4 +46,13 @@ public class CourseHomeworkController extends BaseController {
|
|
|
@PathVariable("courseId") Long courseId) {
|
|
|
return succeed(courseHomeworkService.getCourseHomeworkDetailByCourseId(courseId));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping(value = "/teacherSend")
|
|
|
+ @ApiOperation(value = "发送老师未评价和未布置作业消息")
|
|
|
+ public HttpResponseResult<Object> sendTodayNotRepliedAndNotDecorateHomework() {
|
|
|
+ courseScheduleService.sendTodayNotRepliedAndNotDecorateHomework();
|
|
|
+ return HttpResponseResult.succeed();
|
|
|
+ }
|
|
|
}
|