IRoomBedService.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.AdjustStudentBedDto;
  7. import com.xjrsoft.module.room.dto.DistributeClassPageDto;
  8. import com.xjrsoft.module.room.dto.DistributeRoomBedDto;
  9. import com.xjrsoft.module.room.dto.DistributeRoomBedPageDto;
  10. import com.xjrsoft.module.room.dto.RoomBedPageDto;
  11. import com.xjrsoft.module.room.entity.RoomBed;
  12. import com.xjrsoft.module.room.vo.AdjustBedClassPageVo;
  13. import com.xjrsoft.module.room.vo.AdjustBedStudentPageVo;
  14. import com.xjrsoft.module.room.vo.DistributeClassPageVo;
  15. import com.xjrsoft.module.room.vo.DistributeResultClassVo;
  16. import com.xjrsoft.module.room.vo.DistributeRoomBedPageVo;
  17. import com.xjrsoft.module.room.vo.NoBedStudentPageVo;
  18. import com.xjrsoft.module.room.vo.RoomBedExcelVo;
  19. import com.xjrsoft.module.room.vo.RoomBedPageVo;
  20. import java.util.List;
  21. /**
  22. * @title: 寝室床位
  23. * @Author dzx
  24. * @Date: 2023-12-27
  25. * @Version 1.0
  26. */
  27. public interface IRoomBedService extends MPJBaseService<RoomBed> {
  28. /**
  29. * 分页查询
  30. * @param page
  31. * @param dto
  32. * @return
  33. */
  34. Page<RoomBedPageVo> getPage(Page<RoomBedPageVo> page, RoomBedPageDto dto);
  35. List<RoomBedExcelVo> getList(RoomBedPageDto dto);
  36. Boolean clearStudentInfo(List<Long> ids);
  37. Boolean clearStudentInfoByRoomId(Long id);
  38. Boolean clearStudentInfoByBedId(Long id);
  39. /**
  40. * 分配床位,第一步查询班级
  41. * @param page
  42. * @param dto
  43. * @return
  44. */
  45. Page<DistributeClassPageVo> getDistributeClassInfo(Page<DistributeClassPageDto> page, DistributeClassPageDto dto);
  46. /**
  47. * 分配床位,第二步查询班级
  48. * @param page
  49. * @param dto
  50. * @return
  51. */
  52. Page<DistributeRoomBedPageVo> getDistributeRoomBedInfo(Page<DistributeRoomBedPageDto> page, DistributeRoomBedPageDto dto);
  53. Boolean distributeRoomBed(DistributeRoomBedDto dto);
  54. /**
  55. * 返回分配的结果
  56. * @param dto
  57. * @return
  58. */
  59. List<DistributeResultClassVo> getDistributeResult(DistributeRoomBedDto dto);
  60. /**
  61. * 调整床位,左边的班级学生信息
  62. * @param dto
  63. * @return
  64. */
  65. List<AdjustBedClassPageVo> getClassStudetBed(AdjustClassPageDto dto);
  66. /**
  67. * 调整床位,右边的床位学生信息
  68. * @param dto
  69. * @return
  70. */
  71. List<AdjustBedStudentPageVo> getBedStudetInfo(AdjustBedPageDto dto);
  72. /**
  73. * 未分配床位的学生信息
  74. * @param page
  75. * @param dto
  76. * @return
  77. */
  78. Page<NoBedStudentPageVo> getNoBedStudent(Page<AdjustBedPageDto> page, AdjustBedPageDto dto);
  79. /**
  80. * 单个学生调整床位
  81. * @param dto
  82. */
  83. Boolean adjustBed(AdjustStudentBedDto dto);
  84. /**
  85. * 批量学生调整床位
  86. * @param dtoList 批量传入学生id和床位id
  87. */
  88. Boolean adjustBedBatch(List<AdjustStudentBedDto> dtoList);
  89. }