| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- package com.template.api;
- import com.template.model.pojo.WelcomeBed;
- import com.template.model.pojo.WelcomeStudentDormitory;
- import com.template.model.request.InfoCollectionRequest;
- import com.template.model.request.InsertWelcomeBedRequest;
- import com.template.model.request.UpdateWelcomeBedRequest;
- import com.template.model.result.CommonResult;
- import com.template.model.vo.*;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.validation.BindingResult;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- import org.springframework.web.multipart.MultipartFile;
- import javax.servlet.http.HttpServletResponse;
- import java.io.IOException;
- import java.text.ParseException;
- @RequestMapping("/api/welcomeBed")
- @Api(tags = {"WelcomeBedController"}, value = "床位信息管理")
- public interface WelcomeBedControllerAPI {
- @PostMapping(value = "/insertBedInfo")
- @ApiOperation(value = "添加床位信息", notes = "添加床位信息", httpMethod = "POST")
- CommonResult insertBedInfo(@Validated @RequestBody InsertWelcomeBedRequest iwbr, BindingResult bindingResult) throws Exception;
- @PostMapping(value = "/updateBedInfo")
- @ApiOperation(value = "编辑床位信息", notes = "编辑床位信息", httpMethod = "POST")
- CommonResult updateBedInfo(@Validated @RequestBody UpdateWelcomeBedRequest uwbr, BindingResult bindingResult) throws Exception;
- @GetMapping(value = "/queryPageBeds")
- @ApiOperation(value = "床位信息分页数据", notes = "床位信息分页数据", httpMethod = "GET")
- 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);
- @GetMapping(value = "/deleteBedInfo")
- @ApiOperation(value = "删除床位信息", notes = "删除床位信息", httpMethod = "GET")
- CommonResult deleteBedInfo(@RequestParam int id) throws Exception;
- @PostMapping(value = "/importBedExcel")
- @ApiOperation(value = "导入床位基本信息数据", notes = "导入床位基本信息数据", httpMethod = "POST")
- CommonResult importBedExcel(@RequestParam("file") MultipartFile file) throws IOException, ParseException;
- @GetMapping(value = "/downloadBedExcel")
- @ApiOperation(value = "床位信息导出模板", notes = "床位信息导出模板", httpMethod = "GET")
- CommonResult downloadBedExcel();
- @GetMapping(value = "welcomeBedExport")
- @ApiOperation(value = "导出床位信息数据", notes = "导出床位信息数据", httpMethod = "GET")
- void welcomeBedExport(HttpServletResponse response, Integer schoolId,Integer buildId,Integer dormitoryId,String sex, Integer isCheck,Integer collegeId, Integer majorId, Integer classstrId,Integer retentionState,Integer accountId);
- @PostMapping(value = "/submit")
- @ApiOperation(value = "提交床位信息", notes = "提交床位信息", httpMethod = "POST")
- CommonResult submit(@RequestAttribute String studentCard, @RequestBody WelcomeBed welcomeBed);
- @GetMapping(value = "/bedDetails")
- @ApiOperation(value = "宿舍详情", notes = "宿舍详情", httpMethod = "GET")
- CommonResult bedDetails(Integer schoolId,Integer buildId,Integer dormitoryId,String studentCard);
- @GetMapping(value = "/queryBedDatas")
- @ApiOperation(value = "获取床位下拉数据", notes = "获取床位下拉数据", httpMethod = "GET")
- CommonResult queryBedDatas(@RequestParam int dormitoryId);
- @GetMapping(value = "/isCheck")
- @ApiOperation(value = "判断是否入住", notes = "判断是否入住", httpMethod = "GET")
- CommonResult isCheck(@RequestAttribute String studentCard);
- @PostMapping(value = "/batchOperationBed")
- @ApiOperation(value = "批量操作是否保留", notes = "批量操作是否保留", httpMethod = "POST")
- CommonResult batchOperationBed(@RequestBody BatchOperationBedVo batchOperationVo);
- @PostMapping(value = "/checkIn")
- @ApiOperation(value = "入住", notes = "入住", httpMethod = "POST")
- CommonResult checkIn(@RequestBody CheckInVo checkInVo);
- @GetMapping(value = "/checkOutDormitory")
- @ApiOperation(value = "退宿", notes = "退宿", httpMethod = "GET")
- CommonResult checkOutDormitory(@RequestParam Integer bedId);
- @GetMapping(value = "/bedGroup")
- @ApiOperation(value = "根据学院分组", notes = "根据学院分组", httpMethod = "GET")
- CommonResult bedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId);
- @PostMapping(value = "/changeBed")
- @ApiOperation(value = "换床", notes = "换床", httpMethod = "POST")
- CommonResult changeBed(@RequestBody ChangeBedVo changeBedVo);
- @GetMapping(value = "/checkInBedGroup")
- @ApiOperation(value = "入住床位分组", notes = "入住床位分组", httpMethod = "GET")
- CommonResult checkInBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer bedId,Integer collegeId);
- @PostMapping(value = "/replaceBed")
- @ApiOperation(value = "床位对调", notes = "床位对调", httpMethod = "POST")
- CommonResult replaceBed(@RequestBody ReplaceBedVo replaceBedVo);
- @GetMapping(value = "/studentAccommodationPage")
- @ApiOperation(value = "学生住宿分页展示", notes = "学生住宿分页展示", httpMethod = "GET")
- CommonResult studentAccommodationPage(@RequestParam int currentPage, @RequestParam int pageCount,Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId, Integer classstrId,String name,Integer accountId);
- @GetMapping(value = "/studentAccommodationListExport")
- @ApiOperation(value = "导出学生住宿信息", notes = "导出学生住宿信息", httpMethod = "GET")
- void studentAccommodationListExport(HttpServletResponse response, Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId, Integer classstrId,String name,Integer accountId);
- @GetMapping(value = "/changeBuildGroup")
- @ApiOperation(value = "换床楼栋分组", notes = "学院寝室分组", httpMethod = "GET")
- CommonResult changeBuildGroup(Integer schoolId,Integer collegeId,String sex);
- @GetMapping(value = "/changeDormitoryGroup")
- @ApiOperation(value = "换床寝室分组", notes = "换床寝室分组", httpMethod = "GET")
- CommonResult changeDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,String sex);
- @GetMapping(value = "/changeBedGroup")
- @ApiOperation(value = "换床床位分组", notes = "换床床位分组", httpMethod = "GET")
- CommonResult changeBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,String sex);
- @GetMapping(value = "/replaceBuildGroup")
- @ApiOperation(value = "换床楼栋分组", notes = "换床楼栋分组", httpMethod = "GET")
- CommonResult replaceBuildGroup(Integer schoolId,Integer collegeId,String sex);
- @GetMapping(value = "/replaceDormitoryGroup")
- @ApiOperation(value = "换床寝室分组", notes = "换床寝室分组", httpMethod = "GET")
- CommonResult replaceDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,String sex);
- @GetMapping(value = "/replaceBedGroup")
- @ApiOperation(value = "换床床位分组", notes = "换床床位分组", httpMethod = "GET")
- CommonResult replaceBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,String sex);
- @GetMapping(value = "/hBuildGroup")
- @ApiOperation(value = "移动端楼栋分组", notes = "学院寝室分组", httpMethod = "GET")
- CommonResult hBuildGroup(Integer schoolId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
- @GetMapping(value = "/hDormitoryGroup")
- @ApiOperation(value = "移动端寝室分组", notes = "移动端寝室分组", httpMethod = "GET")
- CommonResult hDormitoryGroup(Integer schoolId,Integer buildId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
- @GetMapping(value = "/hBedGroup")
- @ApiOperation(value = "移动端床位分组", notes = "移动端床位分组", httpMethod = "GET")
- CommonResult hBedGroup(Integer schoolId,Integer buildId,Integer dormitoryId,Integer collegeId,Integer majorId,Integer classstrid,String sex);
- }
|