WelcomeBedControllerAPI.java 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package com.template.api;
  2. import com.template.model.pojo.WelcomeBed;
  3. import com.template.model.pojo.WelcomeStudentDormitory;
  4. import com.template.model.request.InfoCollectionRequest;
  5. import com.template.model.request.InsertWelcomeBedRequest;
  6. import com.template.model.request.UpdateWelcomeBedRequest;
  7. import com.template.model.result.CommonResult;
  8. import com.template.model.vo.*;
  9. import io.swagger.annotations.Api;
  10. import io.swagger.annotations.ApiOperation;
  11. import org.springframework.validation.BindingResult;
  12. import org.springframework.validation.annotation.Validated;
  13. import org.springframework.web.bind.annotation.*;
  14. import org.springframework.web.multipart.MultipartFile;
  15. import javax.servlet.http.HttpServletResponse;
  16. import java.io.IOException;
  17. import java.text.ParseException;
  18. @RequestMapping("/api/welcomeBed")
  19. @Api(tags = {"WelcomeBedController"}, value = "床位信息管理")
  20. public interface WelcomeBedControllerAPI {
  21. @PostMapping(value = "/insertBedInfo")
  22. @ApiOperation(value = "添加床位信息", notes = "添加床位信息", httpMethod = "POST")
  23. CommonResult insertBedInfo(@Validated @RequestBody InsertWelcomeBedRequest iwbr, BindingResult bindingResult) throws Exception;
  24. @PostMapping(value = "/updateBedInfo")
  25. @ApiOperation(value = "编辑床位信息", notes = "编辑床位信息", httpMethod = "POST")
  26. CommonResult updateBedInfo(@Validated @RequestBody UpdateWelcomeBedRequest uwbr, BindingResult bindingResult) throws Exception;
  27. @GetMapping(value = "/queryPageBeds")
  28. @ApiOperation(value = "床位信息分页数据", notes = "床位信息分页数据", httpMethod = "GET")
  29. CommonResult queryPageBeds(@RequestParam int currentPage, @RequestParam int pageCount, Integer schoolId,Integer buildId,Integer dormitoryId,String sex, Integer isCheck,Integer collegeId, Integer majorId, Integer classstrId,Integer retentionState,Integer accountId);
  30. @GetMapping(value = "/deleteBedInfo")
  31. @ApiOperation(value = "删除床位信息", notes = "删除床位信息", httpMethod = "GET")
  32. CommonResult deleteBedInfo(@RequestParam int id) throws Exception;
  33. @PostMapping(value = "/importBedExcel")
  34. @ApiOperation(value = "导入床位基本信息数据", notes = "导入床位基本信息数据", httpMethod = "POST")
  35. CommonResult importBedExcel(@RequestParam("file") MultipartFile file) throws IOException, ParseException;
  36. @GetMapping(value = "/downloadBedExcel")
  37. @ApiOperation(value = "床位信息导出模板", notes = "床位信息导出模板", httpMethod = "GET")
  38. CommonResult downloadBedExcel();
  39. @GetMapping(value = "welcomeBedExport")
  40. @ApiOperation(value = "导出床位信息数据", notes = "导出床位信息数据", httpMethod = "GET")
  41. void welcomeBedExport(HttpServletResponse response, Integer schoolId,Integer buildId,Integer dormitoryId,String sex, Integer isCheck,Integer collegeId, Integer majorId, Integer classstrId,Integer retentionState,Integer accountId);
  42. @PostMapping(value = "/submit")
  43. @ApiOperation(value = "提交床位信息", notes = "提交床位信息", httpMethod = "POST")
  44. CommonResult submit(@RequestAttribute String studentCard, @RequestBody WelcomeBed welcomeBed);
  45. @GetMapping(value = "/bedDetails")
  46. @ApiOperation(value = "宿舍详情", notes = "宿舍详情", httpMethod = "GET")
  47. CommonResult bedDetails(Integer schoolId,Integer buildId,Integer dormitoryId,String studentCard);
  48. @GetMapping(value = "/queryBedDatas")
  49. @ApiOperation(value = "获取床位下拉数据", notes = "获取床位下拉数据", httpMethod = "GET")
  50. CommonResult queryBedDatas(@RequestParam int dormitoryId);
  51. @GetMapping(value = "/isCheck")
  52. @ApiOperation(value = "判断是否入住", notes = "判断是否入住", httpMethod = "GET")
  53. CommonResult isCheck(@RequestAttribute String studentCard);
  54. @PostMapping(value = "/batchOperationBed")
  55. @ApiOperation(value = "批量操作是否保留", notes = "批量操作是否保留", httpMethod = "POST")
  56. CommonResult batchOperationBed(@RequestBody BatchOperationBedVo batchOperationVo);
  57. @PostMapping(value = "/checkIn")
  58. @ApiOperation(value = "入住", notes = "入住", httpMethod = "POST")
  59. CommonResult checkIn(@RequestBody CheckInVo checkInVo);
  60. @GetMapping(value = "/checkOutDormitory")
  61. @ApiOperation(value = "退宿", notes = "退宿", httpMethod = "GET")
  62. CommonResult checkOutDormitory(@RequestParam Integer bedId);
  63. @GetMapping(value = "/bedGroup")
  64. @ApiOperation(value = "根据学院分组", notes = "根据学院分组", httpMethod = "GET")
  65. CommonResult bedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId);
  66. @PostMapping(value = "/changeBed")
  67. @ApiOperation(value = "换床", notes = "换床", httpMethod = "POST")
  68. CommonResult changeBed(@RequestBody ChangeBedVo changeBedVo);
  69. @GetMapping(value = "/checkInBedGroup")
  70. @ApiOperation(value = "入住床位分组", notes = "入住床位分组", httpMethod = "GET")
  71. CommonResult checkInBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer bedId,Integer collegeId);
  72. @PostMapping(value = "/replaceBed")
  73. @ApiOperation(value = "床位对调", notes = "床位对调", httpMethod = "POST")
  74. CommonResult replaceBed(@RequestBody ReplaceBedVo replaceBedVo);
  75. @GetMapping(value = "/studentAccommodationPage")
  76. @ApiOperation(value = "学生住宿分页展示", notes = "学生住宿分页展示", httpMethod = "GET")
  77. CommonResult studentAccommodationPage(@RequestParam int currentPage, @RequestParam int pageCount,Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId, Integer classstrId,String name,Integer accountId);
  78. @GetMapping(value = "/studentAccommodationListExport")
  79. @ApiOperation(value = "导出学生住宿信息", notes = "导出学生住宿信息", httpMethod = "GET")
  80. void studentAccommodationListExport(HttpServletResponse response, Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId, Integer classstrId,String name,Integer accountId);
  81. @GetMapping(value = "/changeBuildGroup")
  82. @ApiOperation(value = "换床楼栋分组", notes = "学院寝室分组", httpMethod = "GET")
  83. CommonResult changeBuildGroup(Integer schoolId,Integer collegeId,String sex);
  84. @GetMapping(value = "/changeDormitoryGroup")
  85. @ApiOperation(value = "换床寝室分组", notes = "换床寝室分组", httpMethod = "GET")
  86. CommonResult changeDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,String sex);
  87. @GetMapping(value = "/changeBedGroup")
  88. @ApiOperation(value = "换床床位分组", notes = "换床床位分组", httpMethod = "GET")
  89. CommonResult changeBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,String sex);
  90. @GetMapping(value = "/replaceBuildGroup")
  91. @ApiOperation(value = "换床楼栋分组", notes = "换床楼栋分组", httpMethod = "GET")
  92. CommonResult replaceBuildGroup(Integer schoolId,Integer collegeId,String sex);
  93. @GetMapping(value = "/replaceDormitoryGroup")
  94. @ApiOperation(value = "换床寝室分组", notes = "换床寝室分组", httpMethod = "GET")
  95. CommonResult replaceDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,String sex);
  96. @GetMapping(value = "/replaceBedGroup")
  97. @ApiOperation(value = "换床床位分组", notes = "换床床位分组", httpMethod = "GET")
  98. CommonResult replaceBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,String sex);
  99. @GetMapping(value = "/hBuildGroup")
  100. @ApiOperation(value = "移动端楼栋分组", notes = "学院寝室分组", httpMethod = "GET")
  101. CommonResult hBuildGroup(Integer schoolId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
  102. @GetMapping(value = "/hDormitoryGroup")
  103. @ApiOperation(value = "移动端寝室分组", notes = "移动端寝室分组", httpMethod = "GET")
  104. CommonResult hDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
  105. @GetMapping(value = "/hBedGroup")
  106. @ApiOperation(value = "移动端床位分组", notes = "移动端床位分组", httpMethod = "GET")
  107. CommonResult hBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
  108. }