he2802 преди 4 години
родител
ревизия
2f180a1e3b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      zhongzheng-admin/src/main/java/com/zhongzheng/controller/course/CourseChapterSectionController.java

+ 2 - 2
zhongzheng-admin/src/main/java/com/zhongzheng/controller/course/CourseChapterSectionController.java

@@ -52,7 +52,7 @@ public class CourseChapterSectionController extends BaseController {
     @ApiOperation("查询章与节关系列表")
     @PreAuthorize("@ss.hasPermi('system:section:list')")
     @GetMapping("/list/{id}")
-    public AjaxResult list(@PathVariable("id" ) Long id) {
+    public Map<String, Object> list(@PathVariable("id" ) Long id) {
         startPage();
         List<CourseChapterSectionVo> list = iCourseChapterSectionService.getListById(id);
         Map<String, Object> result = new HashMap<>();
@@ -61,7 +61,7 @@ public class CourseChapterSectionController extends BaseController {
         result.put("list",list);
         result.put("msg","查询成功");
         result.put("sectionTotal",new PageInfo(list).getTotal());
-        return AjaxResult.success(result);
+        return result;
     }
 
     /**