|
|
|
@ -7,6 +7,7 @@ import cn.jlw.util.ToolUtils;
|
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.service.CoreUserService;
|
|
|
|
|
import com.ibeetl.admin.core.util.ConvertUtil;
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
|
import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
@ -72,6 +73,8 @@ public class TeacherOpenCourseNoticeController{
|
|
|
|
|
|
|
|
|
|
@Resource FileService fileService;
|
|
|
|
|
|
|
|
|
|
@Resource private TeacherService teacherService;
|
|
|
|
|
|
|
|
|
|
/* 前端接口 */
|
|
|
|
|
|
|
|
|
|
@PostMapping(API + "/getPageList.do")
|
|
|
|
@ -173,6 +176,10 @@ public class TeacherOpenCourseNoticeController{
|
|
|
|
|
if(result.hasErrors()){
|
|
|
|
|
return JsonResult.failMessage(result);
|
|
|
|
|
}else{
|
|
|
|
|
Teacher teacher = teacherService.getByUserId(coreUser.getId());
|
|
|
|
|
if (teacher != null) {
|
|
|
|
|
teacherOpenCourseNoticeQuery.setCreateByTeacherId(teacher.getTeacherId());
|
|
|
|
|
}
|
|
|
|
|
teacherOpenCourseNoticeQuery.setUserId(coreUser.getId());
|
|
|
|
|
teacherOpenCourseNoticeQuery.setOrgId(coreUser.getOrgId());
|
|
|
|
|
teacherOpenCourseNoticeQuery.setCreateTime(new Date());
|
|
|
|
|