|
|
@@ -43,7 +43,7 @@ public class RoomBedAdjustController {
|
|
|
private final IRoomBedService roomBedService;
|
|
|
|
|
|
@GetMapping(value = "/class-student")
|
|
|
- @ApiOperation(value="需要分配/调整床位的学生(分页)")
|
|
|
+ @ApiOperation(value="需要分配/调整床位的学生")
|
|
|
@SaCheckPermission("roomBedAdjust:detail")
|
|
|
public RT<List<AdjustBedClassPageVo>> classStudent(@Valid AdjustClassPageDto dto){
|
|
|
if(ObjectUtil.isNull(dto.getClassId()) && ObjectUtil.isNull(dto.getGradeId())){
|
|
|
@@ -57,7 +57,7 @@ public class RoomBedAdjustController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/bed-student")
|
|
|
- @ApiOperation(value="床位学生列表(分页)")
|
|
|
+ @ApiOperation(value="床位学生列表")
|
|
|
@SaCheckPermission("roomBedAdjust:detail")
|
|
|
public RT<List<AdjustBedStudentPageVo>> distributeClassPage(@Valid AdjustBedPageDto dto){
|
|
|
List<AdjustBedStudentPageVo> result = roomBedService.getBedStudetInfo(dto);
|
|
|
@@ -84,6 +84,13 @@ public class RoomBedAdjustController {
|
|
|
return RT.ok(roomBedService.clearStudentInfoByRoomId(id));
|
|
|
}
|
|
|
|
|
|
+ @DeleteMapping(value="/delete-one")
|
|
|
+ @ApiOperation(value = "单个移出学生")
|
|
|
+ @SaCheckPermission("roomBedAdjust:delete")
|
|
|
+ public RT<Boolean> deleteOne(@Valid @RequestBody Long id){
|
|
|
+ return RT.ok(roomBedService.clearStudentInfoByBedId(id));
|
|
|
+ }
|
|
|
+
|
|
|
@PutMapping
|
|
|
@ApiOperation(value = "修改学生的寝室床位")
|
|
|
@SaCheckPermission("roomBedAdjust:edit")
|