From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期五, 05 七月 2024 13:46:32 +0800 Subject: [PATCH] update --- exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java index c0db6f9..a2f92e8 100644 --- a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java +++ b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java @@ -2,6 +2,7 @@ import com.gkhy.exam.common.annotation.Log; +import com.gkhy.exam.common.annotation.RepeatSubmit; import com.gkhy.exam.common.api.CommonResult; import com.gkhy.exam.common.enums.BusinessType; import com.gkhy.exam.system.domain.ExCourseChapter; @@ -42,12 +43,12 @@ @ApiOperation(value = "根据id获取课程章节信息") @GetMapping(value = { "/{chapterId}" }) - public CommonResult getCompanyInfo(@PathVariable(value = "chapterId", required = true) Long chapterId) + public CommonResult getChapterInfo(@PathVariable(value = "chapterId", required = true) Long chapterId) { return CommonResult.success(courseChapterService.selectChapterById(chapterId)); } - + @RepeatSubmit @Log(title = "课程章节管理", businessType = BusinessType.INSERT) @ApiOperation(value = "新增章节") @PostMapping @@ -55,6 +56,7 @@ return CommonResult.success(courseChapterService.insertChapter(courseChapter)); } + @RepeatSubmit @Log(title = "课程章节管理", businessType = BusinessType.UPDATE) @ApiOperation(value = "编辑章节") @PutMapping @@ -62,6 +64,7 @@ return CommonResult.success(courseChapterService.updateChapter(courseChapter)); } + @RepeatSubmit @Log(title = "课程章节管理", businessType = BusinessType.UPDATE) @ApiOperation(value = "删除章节") @DeleteMapping(value = { "/{chapterId}" }) @@ -73,7 +76,7 @@ @GetMapping(value = { "/getCourseChapter" }) public CommonResult getCourseChapter(@RequestParam(required = true)Long courseId) { - return CommonResult.success(courseChapterService.selectChapterByCourseId(courseId)); + return CommonResult.success(courseChapterService.selectChapterByCourseId(courseId,null)); } @ApiOperation(value = "校验章节名称是否唯一") -- Gitblit v1.9.2