|
@@ -1,5 +1,7 @@
|
|
|
package com.ym.mec.teacher.controller;
|
|
|
|
|
|
+import com.ym.mec.biz.service.ImGroupNoticeService;
|
|
|
+import com.ym.mec.common.page.QueryInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -10,6 +12,7 @@ import java.util.Date;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -35,6 +38,8 @@ public class TeacherController extends BaseController {
|
|
|
@Autowired
|
|
|
private TeacherService teacherService;
|
|
|
@Autowired
|
|
|
+ private ImGroupNoticeService imGroupNoticeService;
|
|
|
+ @Autowired
|
|
|
private SubjectService subjectService;
|
|
|
@Autowired
|
|
|
private ClassGroupService classGroupService;
|
|
@@ -111,6 +116,12 @@ public class TeacherController extends BaseController {
|
|
|
return succeed(teacherService.queryGroupStudents(sysUser.getId(),search));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "分页查询群公告列表")
|
|
|
+ @GetMapping(value = "/queryNoticePage")
|
|
|
+ public Object queryNoticePage(QueryInfo queryInfo){
|
|
|
+ return succeed(imGroupNoticeService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取教师上课结算列表")
|
|
|
@GetMapping("/queryCloses")
|
|
|
public Object queryCloses(TeacherCloseQueryInfo queryInfo){
|