|
|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.validation.constraints.*;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import cn.dev33.satoken.annotation.SaMode;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
@@ -70,8 +71,15 @@ public class XgStudentStatusChangeController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 新增学生学籍异动
|
|
|
+ * <p>权限与前端按钮对齐:退学/休学/复学/毕业 任一按钮权限,或历史 add 权限均可</p>
|
|
|
*/
|
|
|
- @SaCheckPermission("studentMsg:studentStatusChange:add")
|
|
|
+ @SaCheckPermission(value = {
|
|
|
+ "studentMsg:status:tuixue",
|
|
|
+ "studentMsg:status:xiuxue",
|
|
|
+ "studentMsg:status:fuxue",
|
|
|
+ "studentMsg:status:biye",
|
|
|
+ "studentMsg:studentStatusChange:add"
|
|
|
+ }, mode = SaMode.OR)
|
|
|
@Log(title = "学生学籍异动", businessType = BusinessType.INSERT)
|
|
|
@RepeatSubmit()
|
|
|
@PostMapping()
|
|
|
@@ -81,8 +89,15 @@ public class XgStudentStatusChangeController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 批量新增学生学籍异动(用于前端提交多个学生的异动)
|
|
|
+ * <p>权限与前端按钮对齐:退学/休学/复学/毕业 任一按钮权限,或历史 add 权限均可</p>
|
|
|
*/
|
|
|
- @SaCheckPermission("studentMsg:studentStatusChange:add")
|
|
|
+ @SaCheckPermission(value = {
|
|
|
+ "studentMsg:status:tuixue",
|
|
|
+ "studentMsg:status:xiuxue",
|
|
|
+ "studentMsg:status:fuxue",
|
|
|
+ "studentMsg:status:biye",
|
|
|
+ "studentMsg:studentStatusChange:add"
|
|
|
+ }, mode = SaMode.OR)
|
|
|
@Log(title = "学生学籍异动", businessType = BusinessType.INSERT)
|
|
|
@RepeatSubmit()
|
|
|
@PostMapping("/batch")
|
|
|
@@ -97,6 +112,10 @@ public class XgStudentStatusChangeController extends BaseController {
|
|
|
/**
|
|
|
* 复学并换班级(一次提交,事务化写入两条记录)
|
|
|
*/
|
|
|
+ @SaCheckPermission(value = {
|
|
|
+ "studentMsg:status:fuxue",
|
|
|
+ "studentMsg:studentStatusChange:add"
|
|
|
+ }, mode = SaMode.OR)
|
|
|
@Log(title = "学生复学并换班级", businessType = BusinessType.INSERT)
|
|
|
@RepeatSubmit()
|
|
|
@PostMapping("/resume-with-class-change")
|