IRoomBedService.java 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. package com.xjrsoft.module.room.service;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.github.yulichang.base.MPJBaseService;
  4. import com.xjrsoft.module.room.dto.AdjustBedPageDto;
  5. import com.xjrsoft.module.room.dto.AdjustClassPageDto;
  6. import com.xjrsoft.module.room.dto.DistributeClassPageDto;
  7. import com.xjrsoft.module.room.dto.DistributeRoomBedDto;
  8. import com.xjrsoft.module.room.dto.DistributeRoomBedPageDto;
  9. import com.xjrsoft.module.room.dto.RoomBedPageDto;
  10. import com.xjrsoft.module.room.entity.RoomBed;
  11. import com.xjrsoft.module.room.vo.AdjustBedClassPageVo;
  12. import com.xjrsoft.module.room.vo.AdjustBedStudentPageVo;
  13. import com.xjrsoft.module.room.vo.DistributeClassPageVo;
  14. import com.xjrsoft.module.room.vo.DistributeResultClassVo;
  15. import com.xjrsoft.module.room.vo.DistributeRoomBedPageVo;
  16. import com.xjrsoft.module.room.vo.NoBedStudentPageVo;
  17. import com.xjrsoft.module.room.vo.RoomBedPageVo;
  18. import java.util.List;
  19. /**
  20. * @title: 寝室床位
  21. * @Author dzx
  22. * @Date: 2023-12-27
  23. * @Version 1.0
  24. */
  25. public interface IRoomBedService extends MPJBaseService<RoomBed> {
  26. /**
  27. * 分页查询
  28. * @param page
  29. * @param dto
  30. * @return
  31. */
  32. Page<RoomBedPageVo> getPage(Page<RoomBedPageVo> page, RoomBedPageDto dto);
  33. Boolean clearStudentInfo(List<Long> ids);
  34. Boolean clearStudentInfoByRoomId(Long id);
  35. /**
  36. * 分配床位,第一步查询班级
  37. * @param page
  38. * @param dto
  39. * @return
  40. */
  41. Page<DistributeClassPageVo> getDistributeClassInfo(Page<DistributeClassPageDto> page, DistributeClassPageDto dto);
  42. /**
  43. * 分配床位,第二步查询班级
  44. * @param page
  45. * @param dto
  46. * @return
  47. */
  48. Page<DistributeRoomBedPageVo> getDistributeRoomBedInfo(Page<DistributeRoomBedPageDto> page, DistributeRoomBedPageDto dto);
  49. Boolean distributeRoomBed(DistributeRoomBedDto dto);
  50. /**
  51. * 返回分配的结果
  52. * @param dto
  53. * @return
  54. */
  55. List<DistributeResultClassVo> getDistributeResult(DistributeRoomBedDto dto);
  56. /**
  57. * 调整床位,左边的班级学生信息
  58. * @param page
  59. * @param dto
  60. * @return
  61. */
  62. Page<AdjustBedClassPageVo> getClassStudetBed(Page<AdjustClassPageDto> page, AdjustClassPageDto dto);
  63. /**
  64. * 调整床位,右边的床位学生信息
  65. * @param page
  66. * @param dto
  67. * @return
  68. */
  69. Page<AdjustBedStudentPageVo> getBedStudetInfo(Page<AdjustBedPageDto> page, AdjustBedPageDto dto);
  70. /**
  71. * 未分配床位的学生信息
  72. * @param page
  73. * @param dto
  74. * @return
  75. */
  76. Page<NoBedStudentPageVo> getNoBedStudent(Page<AdjustBedPageDto> page, AdjustBedPageDto dto);
  77. }