Compare commits

...

2 Commits

Author SHA1 Message Date
7c2ab5e37a 权限添加 2025-10-24 17:49:02 +08:00
1b9f29ac9a 学生自主选择床位权限添加 2025-10-24 17:41:05 +08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -174,10 +174,12 @@ public class SrsDormitoryStudentController extends BaseController {
}
@PreAuthorize("@ss.hasPermi('dms:dormStu:add')")
@ApiOperation(value = "学生自主选择床位", notes = "id不用填写,只能选择是当前学生班级并且为空的宿舍床位", response = StudentDormitoryDto.class)
@PostMapping("/add")
public AjaxResult add(@RequestBody StudentDormitoryDto dto) {
boolean hasRole = RoleBool.isHigh(getUserId(), _postService);
System.out.println(hasRole);
if (hasRole) {
DomInfo dorm = _dormService.getDormHas(dto.getDormitoryId());
SrsStudent stu = _stuService.getStuInfo(dto.getStuNo());
@@ -262,6 +264,7 @@ public class SrsDormitoryStudentController extends BaseController {
return srsDormitoryStudentService.cancel();
}
@ApiOperation(value = "管理员分配学生床位", notes = "id不用填写", response = StudentDormitoryDto.class)
@PostMapping("/admin/add")
public AjaxResult adminAdd(@RequestBody StudentDormitoryDto studentDormitoryDto) {

View File

@@ -64,8 +64,8 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: druid #正式环境
# active: dev #测试环境
# active: druid #正式环境
active: dev #测试环境
# 文件上传
servlet:
multipart: