|
|
|
@ -7,6 +7,7 @@ import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.entity.SchoolClass;
|
|
|
|
|
import com.ibeetl.jlw.entity.Student;
|
|
|
|
|
import com.ibeetl.jlw.entity.Teacher;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseNotice;
|
|
|
|
|
import com.ibeetl.jlw.service.TeacherOpenCourseNoticeService;
|
|
|
|
@ -28,6 +29,9 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import static cn.hutool.core.util.ObjectUtil.defaultIfNull;
|
|
|
|
|
import static cn.jlw.util.CacheUserUtil.getStudent;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通知公告 教师-课程开课-通知公告 接口
|
|
|
|
|
* 切记不要对非线程安全的静态变量进行写操作
|
|
|
|
@ -122,6 +126,12 @@ public class TeacherOpenCourseNoticeController{
|
|
|
|
|
// @Function("teacherOpenCourseNotice.query")
|
|
|
|
|
public JsonResult<PageQuery> list(TeacherOpenCourseNoticeQuery condition, @SCoreUser CoreUser coreUser){
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
condition.setDelFlag(defaultIfNull(condition.getDelFlag(), 0));
|
|
|
|
|
|
|
|
|
|
if (coreUser.isStudent()) {
|
|
|
|
|
Student student = getStudent();
|
|
|
|
|
condition.setSchoolClassIds(student.getClassId().toString());
|
|
|
|
|
}
|
|
|
|
|
teacherOpenCourseNoticeService.queryByConditionQuery(page, coreUser);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
|
}
|
|
|
|
|