|
|
@ -121,7 +121,6 @@ public class ExerciseExperimentalTraining {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<SysCourseDto> dtoList = new ArrayList<>();
|
|
|
|
List<SysCourseDto> dtoList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
// 批量查询所有章节
|
|
|
|
// 批量查询所有章节
|
|
|
|
List<String> courseIds = sysCourseList.stream()
|
|
|
|
List<String> courseIds = sysCourseList.stream()
|
|
|
|
.map(SysTwoCatalog::getTwoId)
|
|
|
|
.map(SysTwoCatalog::getTwoId)
|
|
|
@ -133,7 +132,16 @@ public class ExerciseExperimentalTraining {
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "资源中心根据课程IDList查询章节集合失败");
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "资源中心根据课程IDList查询章节集合失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (sysCourseChapters.isEmpty()) {
|
|
|
|
if (sysCourseChapters.isEmpty()) {
|
|
|
|
return null;
|
|
|
|
//三级为空返回二级的信息
|
|
|
|
|
|
|
|
for (SysTwoCatalog sysTwoCatalog : sysCourseList) {
|
|
|
|
|
|
|
|
SysCourseDto newDto = new SysCourseDto();
|
|
|
|
|
|
|
|
newDto.setCourseId(sysTwoCatalog.getTwoId());
|
|
|
|
|
|
|
|
newDto.setSequence(sysTwoCatalog.getSort());
|
|
|
|
|
|
|
|
newDto.setCourseName(sysTwoCatalog.getTwoName());
|
|
|
|
|
|
|
|
newDto.setSchoolId(sysTwoCatalog.getCreator());
|
|
|
|
|
|
|
|
dtoList.add(newDto);
|
|
|
|
|
|
|
|
return new ResultEntity<List<SysCourseDto>>(dtoList);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 批量查询所有案例题步骤
|
|
|
|
// 批量查询所有案例题步骤
|
|
|
|