|
@@ -58,8 +58,8 @@ public class CourseHomeworkController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "根据课程计划获取需要交作业的学生-公用")
|
|
|
@GetMapping("/findCourseStudentsPublic")
|
|
|
- public Object findCourseStudentsPublic(Long courseScheduleId,String userName, boolean isExtra){
|
|
|
- if(!isExtra){
|
|
|
+ public Object findCourseStudentsPublic(Long courseScheduleId,String userName, boolean extra){
|
|
|
+ if(!extra){
|
|
|
return succeed(studentCourseHomeworkService.findStudentCourseHomeworkByCourse(courseScheduleId,userName));
|
|
|
}else{
|
|
|
return succeed(extracurricularExercisesReplyService.findExtraExerciseStudents(courseScheduleId,userName));
|
|
@@ -85,12 +85,12 @@ public class CourseHomeworkController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "获取学生作业界面详细信息-公用")
|
|
|
@GetMapping(value = "/findCourseHomeworkStudentDetailPublic")
|
|
|
- public Object findCourseHomeworkStudentDetailPublic(Long courseScheduleID,Long userId, boolean isExtra){
|
|
|
+ public Object findCourseHomeworkStudentDetailPublic(Long courseScheduleID,Long userId, boolean extra){
|
|
|
StudentCourseHomework studentCourseHomework1 = studentCourseHomeworkService.get(courseScheduleID);
|
|
|
if(Objects.isNull(studentCourseHomework1)){
|
|
|
return failed("作业不存在");
|
|
|
}
|
|
|
- if(!isExtra){
|
|
|
+ if(!extra){
|
|
|
CourseHomeworkStudentDetailDto courseHomeworkStudentDetail = studentCourseHomeworkService.findCourseHomeworkStudentDetail(studentCourseHomework1.getCourseScheduleId(), userId);
|
|
|
if(Objects.nonNull(courseHomeworkStudentDetail)){
|
|
|
StudentCourseHomework studentCourseHomework=new StudentCourseHomework();
|