From daf7acb4f107a427e4a83ba1eb26e5e6012cbdaf Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Wed, 26 Jun 2024 17:04:52 +0800
Subject: [PATCH] update
---
exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentController.java | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentController.java b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentController.java
index 0962818..4858712 100644
--- a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentController.java
+++ b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentController.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.ExStudent;
@@ -11,7 +12,6 @@
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -48,6 +48,7 @@
return CommonResult.success(studentService.selectStudentById(studentId));
}
+ @RepeatSubmit
@Log(title = "学员管理", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增学员")
@PostMapping
@@ -55,6 +56,7 @@
return CommonResult.success(studentService.insertStudent(student));
}
+ @RepeatSubmit
@Log(title = "学员管理", businessType = BusinessType.UPDATE)
@ApiOperation(value = "编辑学员")
@PutMapping
@@ -62,13 +64,15 @@
return CommonResult.success(studentService.updateStudent(student));
}
- @Log(title = "学员管理", businessType = BusinessType.UPDATE)
+ @RepeatSubmit
+ @Log(title = "学员管理", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除学员")
@DeleteMapping(value = { "/{studentId}" })
public CommonResult delete(@PathVariable(value = "studentId", required = true) Long studentId){
return CommonResult.success(studentService.deleteStudentById(studentId));
}
+ @RepeatSubmit
@Log(title = "学员管理", businessType = BusinessType.UPDATE)
@ApiOperation(value = "重置密码")
@PutMapping(value = "/resetPwd")
--
Gitblit v1.9.2