|
|
@@ -480,7 +480,12 @@ public class CourseInfoController {
|
|
|
Chapter chapter = chapterService.queryEntity(classHour.getChapterId());
|
|
|
CourseInfo courseInfo = courseInfoService.queryEntity(chapter.getCourseId());
|
|
|
param.put("courseId", courseInfo.getCourseId());
|
|
|
- param.put("teacherId", StpLoginUserUtil.getLoginUser().getId());
|
|
|
+ if(StringUtils.isEmpty(StpLoginUserUtil.getLoginUser().getEduIdentity()))return CommonResult.error("您没有教育身份信息,无法进行催交");
|
|
|
+ //如果是老师,催交的是课程自己对应的开课下的学生,如果是管理员,催交的是课程所有开课的学生
|
|
|
+ if("1".equals(StpLoginUserUtil.getLoginUser().getEduIdentity())){
|
|
|
+ param.put("teacherId", StpLoginUserUtil.getLoginUser().getId());
|
|
|
+ }
|
|
|
+
|
|
|
//查询当前老师自己所有课程下所有人员
|
|
|
List<Map<String,Object>> openCourseUserList=courseInfoService.getOpenCourseUserList(param);
|
|
|
List<String> userIdList= openCourseUserList.stream().map(map -> (String) map.get("studentId")).collect(Collectors.toList());
|