Compare commits
2 Commits
6f7fdad06a
...
7c2ab5e37a
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c2ab5e37a | |||
| 1b9f29ac9a |
@@ -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) {
|
||||
|
||||
@@ -64,8 +64,8 @@ spring:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: druid #正式环境
|
||||
# active: dev #测试环境
|
||||
# active: druid #正式环境
|
||||
active: dev #测试环境
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
|
||||
Reference in New Issue
Block a user