|
@@ -16,6 +16,7 @@ import com.ym.mec.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.ym.mec.biz.dal.page.ExtraExercilseQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.ExtraExercilseReplyQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.StudentCourseHomeWorkQueryInfo;
|
|
|
+import com.ym.mec.biz.service.CourseHomeworkService;
|
|
|
import com.ym.mec.biz.service.ExtracurricularExercisesReplyService;
|
|
|
import com.ym.mec.biz.service.ExtracurricularExercisesService;
|
|
|
import com.ym.mec.biz.service.MusicGroupService;
|
|
@@ -71,6 +72,9 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
|
|
|
@Autowired
|
|
|
private ExtracurricularExercisesService extracurricularExercisesService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseHomeworkService courseHomeworkService;
|
|
|
+
|
|
|
@Override
|
|
|
public BaseDAO<Long, ExtracurricularExercisesReply> getDAO() {
|
|
|
return extracurricularExercisesReplyDao;
|
|
@@ -92,6 +96,8 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
|
|
|
for (ExtraExerciseStudentsDto extraExerciseStudent : extraExerciseStudents) {
|
|
|
StudentCourseHomework studentCourseHomework=new StudentCourseHomework();
|
|
|
studentCourseHomework.setId(extraExerciseStudent.getId());
|
|
|
+ studentCourseHomework.setCourseHomeworkId(extraExerciseId);
|
|
|
+ studentCourseHomework.setCourseScheduleId(extraExerciseId);
|
|
|
studentCourseHomework.setUserId(extraExerciseStudent.getUserId());
|
|
|
studentCourseHomework.setUserName(extraExerciseStudent.getStudentName());
|
|
|
studentCourseHomework.setStatus(extraExerciseStudent.getStatus()==0?YesOrNoEnum.NO:YesOrNoEnum.YES);
|
|
@@ -311,6 +317,7 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
|
|
|
studentHomeworkRecordDto.setMusicGroupId(row.getMusicGroupId());
|
|
|
studentHomeworkRecordDto.setClassGroupId(row.getClassGroupId());
|
|
|
studentHomeworkRecordDto.setType(ELessonTrainingType.valueOf(row.getType()));
|
|
|
+ studentHomeworkRecordDto.setSubmitTime(row.getSubmitTime());
|
|
|
recordDtoList.add(studentHomeworkRecordDto);
|
|
|
}
|
|
|
|
|
@@ -360,6 +367,9 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
|
|
|
} else {
|
|
|
studentHomeworkRecordDto.setFinishStatus(true);
|
|
|
}
|
|
|
+
|
|
|
+ // 设置提交时间
|
|
|
+
|
|
|
}
|
|
|
|
|
|
PageInfo<StudentHomeworkRecordDto> pageInfo = new PageInfo<>(studentExtraExercises.getPageNo(),studentExtraExercises.getLimit());
|
|
@@ -370,19 +380,8 @@ public class ExtracurricularExercisesReplyServiceImpl extends BaseServiceImpl<Lo
|
|
|
|
|
|
@Override
|
|
|
public CourseHomeworkWrapper.CourseHomeworkList findStudentExtraExerciseDetailV2(Long studentExerciseId) {
|
|
|
- ExtraExercilseQueryInfo queryInfo = new ExtraExercilseQueryInfo();
|
|
|
- queryInfo.setPage(1);
|
|
|
- queryInfo.setRows(1);
|
|
|
- queryInfo.setStudentExerciseId(studentExerciseId);
|
|
|
- PageInfo<ExtracurricularExercises> extracurricularExercisesReplyPageInfo = extracurricularExercisesService.queryPage(queryInfo);
|
|
|
- if (CollectionUtils.isEmpty(extracurricularExercisesReplyPageInfo.getRows())) {
|
|
|
- throw new BizException("课外训练不存在");
|
|
|
- }
|
|
|
- ExtracurricularExercises extracurricularExercises = extracurricularExercisesReplyPageInfo.getRows().get(0);
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- return null;
|
|
|
+ return courseHomeworkService.findCourseExtraHomeworkDetail( studentExerciseId.intValue());
|
|
|
|
|
|
|
|
|
}
|