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/ExStudentStudyController.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentStudyController.java b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentStudyController.java index e0b55db..470a514 100644 --- a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentStudyController.java +++ b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentStudyController.java @@ -2,7 +2,9 @@ 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.constant.UserConstant; import com.gkhy.exam.common.enums.BusinessType; import com.gkhy.exam.system.service.ExStudentStudyService; import io.swagger.annotations.Api; @@ -20,7 +22,7 @@ * @author kzy * @since 2024-06-06 13:53:17 */ -@Api(tags = "学员学习记录前端控制器") +@Api(tags = "学员课程学习记录前端控制器") @RestController @RequestMapping("/student-study") public class ExStudentStudyController { @@ -34,9 +36,11 @@ }) @GetMapping("/getStudentStudy") public CommonResult getStudentStudy(@RequestParam(required = true) Long phaseId, @RequestParam(required = true)Long studentId){ - return CommonResult.success(studentStudyService.selectStudyByPhaseAndStundentId(phaseId,studentId)); + return CommonResult.success(studentStudyService.selectStudyByPhaseAndStundentId(phaseId,studentId, UserConstant.ENABLE)); } + + @RepeatSubmit @Log(title = "课程学习记录管理", businessType = BusinessType.DELETE) @ApiOperation(value = "删除学习记录") @DeleteMapping(value = { "/{studyId}" }) -- Gitblit v1.9.2