¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.service.ManageMeetingService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡ä¼è®®") |
| | | @RestController |
| | | @RequestMapping("/manageMeeting") |
| | | public class ManageMeetingController { |
| | | |
| | | @Resource |
| | | private ManageMeetingService manageMeetingService; |
| | | |
| | | @ApiOperation(value = "管çè¯å®¡ä¼è®®è®°å½æ¥è¯¢") |
| | | @GetMapping("/getPageMeeting") |
| | | public Result<IPage<ManageMeetingDto>> getPageMeeting(Page page, String startTime, String endTime, String place) throws Exception { |
| | | IPage<ManageMeetingDto> ipage = manageMeetingService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ä¼è®®è®°å½") |
| | | @PostMapping("/addMeeting") |
| | | public Result addMeeting(@RequestBody ManageMeetingDto dto){ |
| | | manageMeetingService.addMeeting(dto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾ä¼è®®è®°å½") |
| | | @PutMapping("/modifyMeeting") |
| | | public Result modifyMeeting(@RequestBody ManageMeetingDto manageMeetingDto){ |
| | | return Result.success(manageMeetingService.modifyMeeting(manageMeetingDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä¼è®®è®°å½") |
| | | @DeleteMapping("/deleteMeeting") |
| | | public Result deleteMeeting(Integer id){ |
| | | return Result.success(manageMeetingService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¸è½½ä¼è®®è®°å½") |
| | | @PostMapping("/exportMeeting") |
| | | public void exportMeeting(Integer id, HttpServletResponse response){ |
| | | manageMeetingService.exportMeeting(id,response); |
| | | } |
| | | |
| | | } |