|
@@ -48,7 +48,11 @@ public class CourseModuleChapterServiceImpl extends ServiceImpl<CourseModuleChap
|
|
|
@Override
|
|
|
public List<CourseModuleChapterVo> getListById(Long id) {
|
|
|
String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
- return courseModuleChapterMapper.getListById(id, Long.valueOf(tenantId));
|
|
|
+ List<CourseModuleChapterVo> list = courseModuleChapterMapper.getListById(id, Long.valueOf(tenantId));
|
|
|
+ for(CourseModuleChapterVo vo : list){
|
|
|
+ vo.setChapterTotalTime(courseMenuMapper.countChapterTotalTime(vo.getChapterId()));
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
|