|
@@ -12,6 +12,7 @@ import com.zhongzheng.modules.course.bo.CourseChapterSectionEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseChapterSectionVo;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseModuleChapterVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -52,16 +53,16 @@ public class CourseChapterSectionController extends BaseController {
|
|
|
@ApiOperation("查询章与节关系列表")
|
|
|
@PreAuthorize("@ss.hasPermi('system:section:list')")
|
|
|
@GetMapping("/list/{id}")
|
|
|
- public Map<String, Object> list(@PathVariable("id" ) Long id) {
|
|
|
- startPage();
|
|
|
+ public AjaxResult<List<CourseChapterSectionVo>> list(@PathVariable("id" ) Long id) {
|
|
|
+
|
|
|
List<CourseChapterSectionVo> list = iCourseChapterSectionService.getListById(id);
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
+ /* Map<String, Object> result = new HashMap<>();
|
|
|
result.put("total",new PageInfo(list).getTotal());
|
|
|
result.put("code", HttpStatus.HTTP_OK);
|
|
|
result.put("rows",list);
|
|
|
result.put("msg","查询成功");
|
|
|
- result.put("timeTotal",iCourseChapterSectionService.getListTotalTime(id));
|
|
|
- return result;
|
|
|
+ result.put("timeTotal",iCourseChapterSectionService.getListTotalTime(id));*/
|
|
|
+ return AjaxResult.success(list);
|
|
|
}
|
|
|
|
|
|
/**
|